skip to content

What was the Aspire deployment manifest, why is it deprecated in Aspire 13, and where does azd still fit in deploying an Aspire app?

level: seniorimportance: nice to knowfreq 15%

answer

  1. a JSON description of the app model
  2. azd consumed it behind the scenes
  3. --publisher manifest, now publish-manifest
  4. ManifestPublisher is [Obsolete]
  5. WithAzdResourceNaming when switching

basics

~20 s

The deployment manifest was a JSON description of the AppHost's resources, bindings and parameters that azd turned into Azure resources. Aspire 13 deprecates it for aspire publish and aspire deploy; azd still consumes it in existing workflows.

solid answer

~50 s

In Aspire 8 and 9, running the AppHost with `--publisher manifest` wrote an `aspire-manifest.json`: every resource with its type, image or project path, environment variables, bindings and connection-string expressions, with parameters left as references. The manifest was the contract between Aspire and the Azure Developer CLI — `azd init` and `azd up` generated and read it to produce Bicep and deploy to Container Apps. Aspire 13 moved deployment into the AppHost's own pipeline, where compute environments emit Compose, Helm or Bicep directly, so the manifest is a deprecated compatibility format: `ManifestPublisher` is marked `[Obsolete]`, the `--publisher manifest` switch is mapped to the `publish-manifest` pipeline step for azd's sake, and `aspire do publish-manifest` produces it for troubleshooting. azd 1.35 still deploys Aspire 13 apps that way and suits teams with existing azd templates or `azd pipeline config`; new Azure work goes through `aspire deploy`, with `WithAzdResourceNaming()` when taking over azd-created resources.

code

csharp · 12 lines
csharp
var builder = DistributedApplication.CreateBuilder(args);

// Take over the Container Apps resources an earlier azd deployment created
builder.AddAzureContainerAppEnvironment("aca")
    .WithAzdResourceNaming();

var tickets = builder.AddPostgres("postgres").AddDatabase("ticketsdb");
builder.AddProject<Projects.Ticketing_Api>("ticketing-api")
    .WithReference(tickets)
    .WithExternalHttpEndpoints();

builder.Build().Run();

go deeper

for a junior

Recall that the manifest was a JSON description of the app model used by deployment tools, and that it is deprecated in Aspire 13.

for a middle

Explain what replaced it: compute environments contributing pipeline steps, driven by aspire publish and aspire deploy, with azd still consuming the manifest.

for a senior

Plan a migration from azd: keep it where azd pipeline config and environments earn their place, and use WithAzdResourceNaming before letting aspire deploy touch azd-created resources.

for a principal

Choose the organisation's Azure deployment path for Aspire apps, weighing azd's established CI/CD scaffolding against aspire deploy's feature direction.

## What the manifest was Before Aspire had its own deployment commands, it needed a way to hand the **app model** — the resources an AppHost declares and how they reference each other — to external deployment tools. The answer was the **deployment manifest**: a JSON document produced by running the AppHost in a publishing mode with `--publisher manifest`, conventionally saved as `aspire-manifest.json`. For the event-ticketing app it described: - each project, container and executable, with its image or project path; - environment variables and bindings (ports, schemes, external or internal); - connection-string expressions such as the PostgreSQL database's, written as references to other resources; - parameters, kept as placeholders rather than values. The manifest itself deployed nothing. Its main consumer was the **Azure Developer CLI** (`azd`): `azd init` detected the AppHost, and `azd up` generated the manifest, turned it into Bicep for Azure Container Apps and deployed. ## Why Aspire 13 deprecates it Aspire 13 rebuilt deployment around a **pipeline** inside the AppHost. Compute environment resources — Docker Compose, Kubernetes, Azure Container Apps, App Service — contribute steps that write their own artifacts and apply them, driven by `aspire publish`, `aspire deploy` and `aspire do`. Once each target speaks for itself, a lowest-common-denominator JSON format in between adds nothing. The source and docs mark the change: | Signal | Where | |---|---| | `ManifestPublisher` carries `[Obsolete("ManifestPublisher is obsolete. Use the publish-manifest pipeline step.")]` | `Aspire.Hosting` | | `--publisher manifest` is translated to the `publish-manifest` step "to support azd scenarios" | `DistributedApplicationBuilder` | | "The deployment manifest is deprecated"; the format is "no longer being evolved" | aspire.dev FAQ and manifest reference | | new Azure deployment features land in the `aspire deploy` path | aspire.dev azd page | To inspect it while debugging an azd workflow, generate it on demand: ```bash aspire do publish-manifest --output-path ./aspire-manifest.json ``` ## Where azd still fits `azd` is still supported with Aspire, and its 1.35 release deploys Aspire 13 AppHosts, generating and consuming the manifest behind the scenes. It remains a sensible choice when: 1. a team already has `azd` templates, hooks and infrastructure it wants to keep; 2. it relies on `azd pipeline config` to set up CI/CD for GitHub Actions or Azure DevOps; 3. it uses `azd` environments (`azd env`) to manage several deployments. There are seams to know about: - **Environment name.** Selecting an azd environment does not set the AppHost's environment; set `DOTNET_ENVIRONMENT` in each azd environment, or the AppHost runs as `Production`. - **Parameters.** Aspire parameters are resolved by the AppHost from .NET configuration when the manifest is generated; azd's own infrastructure inputs are Bicep parameters stored under `.azure/<env>/config.json` and never reach the AppHost. - **Language.** azd's Aspire support targets C# AppHosts; its changelog adds early detection of unsupported non-C# AppHosts. ## Moving from azd to aspire deploy `aspire deploy` and `azd` name Azure resources differently by default. Pointing `aspire deploy` at a subscription where `azd` already created the ticketing app would create a second set of resources. Calling `WithAzdResourceNaming()` on the Container Apps environment keeps azd's naming so the existing resources are updated instead. ## What the manifest never covered The manifest described resources and wiring, not the whole deployment. Image builds and pushes, Azure resource naming, registry and identity creation, and secret prompting all lived in `azd`, which is why switching tools changes more than the input file. In the 13.x pipeline those concerns belong to the compute environment resource that owns the target. ## Interview-ready summary - The manifest was an **intermediate artifact**, not a deployment mechanism. - It is **deprecated, not removed**: it exists for azd compatibility and troubleshooting. - New deployments use compute environments with `aspire publish` or `aspire deploy`. - azd is a supported path for existing workflows; plan resource naming before switching.

  • A team runs azd env select staging and expects the AppHost to branch on Staging. Why does it not?
    Selecting an azd environment does not set the .NET environment of the AppHost process. azd passes `DOTNET_ENVIRONMENT` from the active environment's `.env` file only if you set it there, for example with `azd env set DOTNET_ENVIRONMENT staging`; without it the AppHost runs as `Production`.
  • Is the manifest removed in Aspire 13?
    No. `ManifestPublisher` is obsolete and the format is frozen, but the `publish-manifest` pipeline step still produces it, and the AppHost maps the old `--publisher manifest` switch onto that step so azd keeps working. It is a compatibility path, not a place where new features appear.

  • The deployment manifest is the recommended way to deploy Aspire 13 apps to Azure.
  • aspire deploy reads aspire-manifest.json to decide what to provision.
  • azd cannot deploy Aspire 13 AppHosts at all.
  • Selecting an azd environment automatically sets the AppHost's DOTNET_ENVIRONMENT.
  • Switching from azd to aspire deploy reuses the existing resource names without extra code.

Assumes Aspire 13.6 and azd 1.35: the manifest has been a deprecated compatibility format since the 13.0 pipeline rewrite, and azd 1.35 still consumes it for Aspire 13 AppHosts.