Aspire.Hosting.Azure
13.3.4
Prefix Reserved
See the version list below for details.
dotnet add package Aspire.Hosting.Azure --version 13.3.4
NuGet\Install-Package Aspire.Hosting.Azure -Version 13.3.4
<PackageReference Include="Aspire.Hosting.Azure" Version="13.3.4" />
<PackageVersion Include="Aspire.Hosting.Azure" Version="13.3.4" />
<PackageReference Include="Aspire.Hosting.Azure" />
paket add Aspire.Hosting.Azure --version 13.3.4
#r "nuget: Aspire.Hosting.Azure, 13.3.4"
#:package Aspire.Hosting.Azure@13.3.4
#addin nuget:?package=Aspire.Hosting.Azure&version=13.3.4
#tool nuget:?package=Aspire.Hosting.Azure&version=13.3.4
Aspire.Hosting.Azure library
Provides core extensions to the Aspire hosting model for Azure services.
Getting started
Prerequisites
- Azure subscription - create one for free
Install the package
In your AppHost project, install the Aspire Azure Hosting library with NuGet:
dotnet add package Aspire.Hosting.Azure
Configure Azure Provisioning for local development
Adding Azure resources to the Aspire application model will automatically enable development-time provisioning for Azure resources so that you don't need to configure them manually. Provisioning requires a number of settings to be available via .NET configuration. Set these values in user secrets in order to allow resources to be configured automatically.
{
"Azure": {
"SubscriptionId": "<your subscription id>",
"ResourceGroupPrefix": "<prefix for the resource group>",
"Location": "<azure location>"
}
}
NOTE: Developers must have Owner access to the target subscription so that role assignments can be configured for the provisioned resources.
Usage example
Then, in the AppHost.cs file of AppHost, add a resource based on a Bicep template:
var bicepResource = builder.AddBicepTemplate("bicep", "template.bicep")
.WithParameter("parametername", "parametervalue");
});
Additional documentation
- https://aspire.dev/integrations/cloud/azure/overview/
- https://learn.microsoft.com/azure/azure-resource-manager/bicep/overview
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 (>= 13.3.4)
- AspNetCore.HealthChecks.Uris (>= 9.0.0)
- Azure.Core (>= 1.53.0)
- Azure.Identity (>= 1.21.0)
- Azure.Provisioning (>= 1.5.0)
- Azure.Provisioning.KeyVault (>= 1.1.0)
- Azure.ResourceManager.Resources (>= 1.11.2)
- Azure.Security.KeyVault.Secrets (>= 4.8.0)
- Google.Protobuf (>= 3.33.5)
- Grpc.AspNetCore (>= 2.76.0)
- Grpc.Net.ClientFactory (>= 2.76.0)
- Grpc.Tools (>= 2.78.0)
- Humanizer.Core (>= 2.14.1)
- JsonPatch.Net (>= 3.3.0)
- KubernetesClient (>= 18.0.13)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.7)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.26)
- Microsoft.Extensions.FileSystemGlobbing (>= 10.0.7)
- Microsoft.Extensions.Hosting (>= 10.0.7)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Http (>= 10.0.7)
- Microsoft.Extensions.Logging (>= 10.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Options (>= 10.0.7)
- Microsoft.Extensions.Primitives (>= 10.0.7)
- ModelContextProtocol (>= 1.0.0)
- Newtonsoft.Json (>= 13.0.4)
- Polly.Core (>= 8.6.5)
- Semver (>= 3.0.0)
- StreamJsonRpc (>= 2.22.23)
- System.IO.Hashing (>= 10.0.3)
- System.Text.Json (>= 10.0.7)
NuGet packages (29)
Showing the top 5 NuGet packages that depend on Aspire.Hosting.Azure:
| Package | Downloads |
|---|---|
|
Aspire.Hosting.Azure.Storage
Azure Storage resource types for Aspire. |
|
|
Aspire.Hosting.Azure.KeyVault
Azure resource types for Aspire. |
|
|
Aspire.Hosting.Azure.ServiceBus
Azure Service Bus resource types for Aspire. |
|
|
Aspire.Hosting.Azure.Functions
Azure Functions resource types for Aspire. |
|
|
Aspire.Hosting.Azure.OperationalInsights
Azure Log Analytics resource types for Aspire. |
GitHub repositories (9)
Showing the top 9 popular GitHub repositories that depend on Aspire.Hosting.Azure:
| Repository | Stars |
|---|---|
|
microsoft/aspire-samples
|
|
|
mehdihadeli/food-delivery-microservices
🍔 A practical and cloud-native food delivery microservices, built with .Net Aspire, .Net 9, MassTransit, Domain-Driven Design, CQRS, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies.
|
|
|
ProfessionalCSharp/ProfessionalCSharp2021
Source code for Professional C# and .NET 2021 Edition (with updates for C# 11 and .NET 7)
|
|
|
Azure-Samples/eShopOnAzure
A variant of https://github.com/dotnet/eShop that uses Azure services
|
|
|
Azure-Samples/eShopLite
eShopLite is a set of reference .NET applications implementing an eCommerce site with features like Semantic Search, MCP, Reasoning models and more.
|
|
|
Keboo/DotnetTemplates
A repository for my dotnet templates
|
|
|
Azure-Samples/interview-coach-agent-framework
Interview coach application using Microsoft Agent Framework | https://aka.ms/agentframework/interviewcoach
|
|
|
koralium/flowtide
High-performance streaming SQL query engine designed for real-time data processing. Use cases include event-driven architectures, ETL pipelines, and modern data-intensive applications.
|
|
|
PacktPublishing/Pragmatic-Microservices-with-CSharp-and-Azure
Pragmatic Microservices with C# and Azure, published by Packt
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 13.3.5 | 3,389 | 5/21/2026 | |
| 13.3.4 | 6,981 | 5/19/2026 | |
| 13.3.3 | 27,481 | 5/15/2026 | |
| 13.3.2 | 15,299 | 5/14/2026 | |
| 13.3.1 | 11,606 | 5/12/2026 | |
| 13.3.0 | 51,904 | 5/7/2026 | |
| 13.2.4 | 151,726 | 4/24/2026 | |
| 13.2.3 | 50,221 | 4/21/2026 | |
| 13.2.2 | 157,825 | 4/8/2026 | |
| 13.2.1 | 92,447 | 3/31/2026 | |
| 13.2.0 | 139,783 | 3/23/2026 | |
| 13.1.3 | 44,783 | 3/19/2026 | |
| 13.1.2 | 296,424 | 2/26/2026 | |
| 13.1.1 | 214,415 | 2/11/2026 | |
| 13.1.0 | 683,129 | 12/17/2025 | |
| 13.0.2 | 171,687 | 12/4/2025 | |
| 13.0.1 | 64,754 | 11/26/2025 | |
| 13.0.0 | 212,030 | 11/11/2025 | |
| 9.5.2 | 300,751 | 10/23/2025 | |
| 9.5.1 | 282,471 | 10/3/2025 |