Aspire.Hosting.Azure.AppContainers
13.6.1
Prefix Reserved
dotnet add package Aspire.Hosting.Azure.AppContainers --version 13.6.1
NuGet\Install-Package Aspire.Hosting.Azure.AppContainers -Version 13.6.1
<PackageReference Include="Aspire.Hosting.Azure.AppContainers" Version="13.6.1" />
<PackageVersion Include="Aspire.Hosting.Azure.AppContainers" Version="13.6.1" />
<PackageReference Include="Aspire.Hosting.Azure.AppContainers" />
paket add Aspire.Hosting.Azure.AppContainers --version 13.6.1
#r "nuget: Aspire.Hosting.Azure.AppContainers, 13.6.1"
#:package Aspire.Hosting.Azure.AppContainers@13.6.1
#addin nuget:?package=Aspire.Hosting.Azure.AppContainers&version=13.6.1
#tool nuget:?package=Aspire.Hosting.Azure.AppContainers&version=13.6.1
Azure Container Apps hosting integration
Use this integration to model, configure, and orchestrate Azure Container Apps environments and deploy compute resources in an Aspire solution.
Getting started
Prerequisites
- An Aspire AppHost and a running container runtime, such as Docker, for building and running container images.
- For deployment, an Azure subscription with permission to create resources and assign roles, and the Azure CLI authenticated with
az login.
Add the integration
From your AppHost directory, add the Aspire.Hosting.Azure.AppContainers integration with the Aspire CLI:
aspire add Aspire.Hosting.Azure.AppContainers
Usage example
Then, in the AppHost, add an Azure Container Apps environment and a web app to deploy to it.
The example uses the core AddDockerfile API and assumes a web subdirectory of the AppHost directory contains a Dockerfile for an HTTP app listening on port 8080.
C#
using Aspire.Hosting;
var builder = DistributedApplication.CreateBuilder(args);
builder.AddAzureContainerAppEnvironment("env");
builder.AddDockerfile("web", "web")
.WithHttpEndpoint(targetPort: 8080)
.WithExternalHttpEndpoints();
builder.Build().Run();
TypeScript
import { createBuilder } from './.aspire/modules/aspire.mjs';
const builder = await createBuilder();
await builder.addAzureContainerAppEnvironment("env");
await builder.addDockerfile("web", "web")
.withHttpEndpoint({ targetPort: 8080 })
.withExternalHttpEndpoints();
await builder.build().run();
With one environment, supported compute resources are assigned to it automatically. PublishAsAzureContainerApp is only needed to customize the generated Container App.
HTTP endpoints are internal by default; WithExternalHttpEndpoints opts this web app into public ingress.
Publish and deploy
aspire publishgenerates Bicep and parameterized deployment artifacts without provisioning Azure resources.aspire deployresolves Azure settings and parameters, provisions the environment and its default container registry, builds and pushes images, and deploys the app.
Both commands write artifacts to the AppHost's aspire-output directory by default. Interactive deployment can prompt for the subscription, location, and resource group.
Local runs do not provision the Container Apps environment. Deployed apps pull images using managed identity; keep sensitive configuration in secret parameters or Azure Key Vault references.
To clean up, use aspire destroy. This deletes the entire deployment resource group, including resources not created by Aspire.
Additional documentation
- https://aspire.dev/integrations/gallery/
- https://aspire.dev/deployment/azure/container-apps/
- https://aspire.dev/integrations/cloud/azure/configure-container-apps/
- https://learn.microsoft.com/azure/container-apps/
Feedback & contributing
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Aspire.Hosting.Azure (>= 13.6.1)
- Aspire.Hosting.Azure.ContainerRegistry (>= 13.6.1)
- Aspire.Hosting.Azure.OperationalInsights (>= 13.6.1)
- AspNetCore.HealthChecks.Uris (>= 9.0.0)
- Azure.Core (>= 1.62.0)
- Azure.Identity (>= 1.21.0)
- Azure.Provisioning (>= 1.6.0)
- Azure.Provisioning.AppContainers (>= 1.2.0)
- Azure.Provisioning.ContainerRegistry (>= 1.1.0)
- Azure.Provisioning.KeyVault (>= 1.1.0)
- Azure.Provisioning.OperationalInsights (>= 1.1.0)
- Azure.Provisioning.Storage (>= 1.1.2)
- Azure.ResourceManager.Authorization (>= 1.1.7)
- Azure.ResourceManager.KeyVault (>= 1.4.0)
- Azure.ResourceManager.Resources.Deployments (>= 1.0.0)
- Azure.Security.KeyVault.Secrets (>= 4.11.1)
- Google.Protobuf (>= 3.36.1)
- Grpc.AspNetCore (>= 2.83.0)
- Grpc.Net.ClientFactory (>= 2.83.0)
- Grpc.Tools (>= 2.83.0)
- Hex1b (>= 0.168.0)
- KubernetesClient (>= 19.0.2)
- MessagePack (>= 2.5.302)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.12)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 10.0.12)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.31)
- Microsoft.Extensions.FileSystemGlobbing (>= 10.0.12)
- Microsoft.Extensions.Hosting (>= 10.0.12)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Http (>= 10.0.12)
- Microsoft.Extensions.Logging (>= 10.0.12)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Options (>= 10.0.12)
- Microsoft.Extensions.Primitives (>= 10.0.12)
- ModelContextProtocol (>= 1.4.1)
- NCrontab.Signed (>= 3.4.0)
- Newtonsoft.Json (>= 13.0.4)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.17.0)
- OpenTelemetry.Extensions.Hosting (>= 1.17.0)
- Polly.Core (>= 8.7.0)
- Semver (>= 3.0.0)
- StreamJsonRpc (>= 2.25.29)
- System.IO.Hashing (>= 10.0.12)
- System.Text.Json (>= 10.0.12)
- YamlDotNet (>= 18.1.0)
NuGet packages (7)
Showing the top 5 NuGet packages that depend on Aspire.Hosting.Azure.AppContainers:
| Package | Downloads |
|---|---|
|
CommunityToolkit.Aspire.Hosting.Azure.Dapr
Azure Dapr support for Aspire. |
|
|
Nextended.Aspire.Hosting.Supabase
This Library provides an Aspire Supabase solution |
|
|
Nextended.Aspire.Hosting.N8n
This Library provides an Aspire n8n workflow automation solution |
|
|
CoconutSharp.Aspire.Hosting
Opinionated application and deployment layer on top of .NET Aspire. Run locally with Aspire, publish with CoconutSharp. |
|
|
Toxic.Aspire.NamingConventions.Azure
Contains a framework for automatically generating Aspire Azure resource names according to conventions. |
GitHub repositories (7)
Showing the top 7 popular GitHub repositories that depend on Aspire.Hosting.Azure.AppContainers:
| Repository | Stars |
|---|---|
|
jasontaylordev/CleanArchitecture
Clean Architecture Solution Template for ASP.NET Core
|
|
|
microsoft/aspire-samples
Browse the sample apps demonstrating Aspire integration across C#, JavaScript, TypeScript, Python, Go, containers, databases, cloud, AI, and observability scenarios.
|
|
|
mehdihadeli/food-delivery-microservices
🍔 A practical and cloud-native food delivery microservices, built with .Net Aspire, .Net 10, Wolverine, Domain-Driven Design, CQRS, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies.
|
|
|
CommunityToolkit/Aspire
A community project with additional components and extensions for Aspire
|
|
|
foxminchan/BookWorm
An Aspire reference architecture for cloud-native microservices and agentic AI with MCP, A2A & AG-UI
|
|
|
Keboo/DotnetTemplates
A repository for my dotnet templates
|
|
|
PacktPublishing/Pragmatic-Microservices-with-CSharp-and-Azure
Pragmatic Microservices with C# and Azure, published by Packt
|
| Version | Downloads | Last Updated |
|---|---|---|
| 13.6.1 | 86 | 10/7/2026 |
| 13.6.0 | 20,300 | 9/29/2026 |
| 13.5.4 | 37,021 | 9/15/2026 |
| 13.5.3 | 85,513 | 8/25/2026 |
| 13.5.2 | 30,026 | 8/21/2026 |
| 13.5.1 | 5,762 | 8/20/2026 |
| 13.5.0 | 18,566 | 8/18/2026 |
| 13.4.6 | 256,740 | 6/19/2026 |
| 13.4.5 | 16,405 | 6/17/2026 |
| 13.4.4 | 17,340 | 6/15/2026 |
| 13.4.3 | 28,451 | 6/8/2026 |
| 13.4.2 | 19,085 | 6/3/2026 |
| 13.4.1 | 1,071 | 6/3/2026 |
| 13.4.0 | 8,510 | 6/1/2026 |
| 13.3.5 | 35,228 | 5/21/2026 |
| 13.3.4 | 8,144 | 5/19/2026 |
| 13.3.3 | 12,819 | 5/15/2026 |
| 13.3.2 | 10,033 | 5/14/2026 |
| 13.3.1 | 4,819 | 5/12/2026 |
| 13.3.0 | 32,473 | 5/7/2026 |