Aspire.Hosting.Azure 13.2.0
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
Showing the top 20 packages that depend on Aspire.Hosting.Azure.
| Packages | Downloads |
|---|---|
|
Aspire.Hosting.Azure.Storage
Azure Storage resource types for .NET Aspire.
|
13 |
|
Aspire.Hosting.Orleans
Orleans support for .NET Aspire.
|
11 |
|
Aspire.Hosting.Azure.Storage
Azure Storage resource types for .NET Aspire.
|
11 |
|
Aspire.Hosting.Orleans
Orleans support for .NET Aspire.
|
10 |
|
Aspire.Hosting.Azure.Storage
Azure Storage resource types for .NET Aspire.
|
10 |
|
Aspire.Hosting.Azure.Storage
Azure Storage resource types for .NET Aspire.
|
9 |
|
Aspire.Hosting.Azure.Storage
Azure Storage resource types for .NET Aspire.
|
8 |
|
Aspire.Hosting.Azure.Storage
Azure Storage resource types for Aspire.
|
8 |
|
Aspire.Hosting.Azure.Storage
Azure Storage resource types for .NET Aspire.
|
7 |
|
Aspire.Hosting.Azure.Storage
Azure Storage resource types for Aspire.
|
7 |
.NET 8.0
- Aspire.Hosting (>= 13.2.0)
- System.Text.Json (>= 10.0.5)
- StreamJsonRpc (>= 2.22.23)
- Semver (>= 3.0.0)
- Polly.Core (>= 8.6.5)
- Newtonsoft.Json (>= 13.0.4)
- ModelContextProtocol (>= 1.0.0)
- Microsoft.Extensions.Primitives (>= 10.0.5)
- Microsoft.Extensions.Options (>= 10.0.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Http (>= 10.0.5)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Hosting (>= 10.0.5)
- Microsoft.Extensions.FileSystemGlobbing (>= 10.0.5)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.25)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.5)
- Azure.Core (>= 1.51.1)
- KubernetesClient (>= 18.0.13)
- JsonPatch.Net (>= 3.3.0)
- Humanizer.Core (>= 2.14.1)
- Grpc.Tools (>= 2.78.0)
- Grpc.Net.ClientFactory (>= 2.76.0)
- Grpc.AspNetCore (>= 2.76.0)
- Google.Protobuf (>= 3.33.5)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.5)
- AspNetCore.HealthChecks.Uris (>= 9.0.0)
- System.IO.Hashing (>= 10.0.3)
- Azure.Security.KeyVault.Secrets (>= 4.8.0)
- Azure.ResourceManager.Resources (>= 1.11.2)
- Azure.Provisioning.KeyVault (>= 1.1.0)
- Azure.Provisioning (>= 1.5.0)
- Azure.Identity (>= 1.18.0)
| Version | Downloads | Last updated |
|---|---|---|
| 13.2.0 | 1 | 3/24/2026 |
| 13.1.3 | 3 | 3/19/2026 |
| 13.1.2 | 4 | 2/27/2026 |
| 13.1.1 | 5 | 2/16/2026 |
| 13.1.0 | 6 | 12/18/2025 |
| 13.0.2 | 7 | 12/7/2025 |
| 13.0.1 | 6 | 11/28/2025 |
| 13.0.0 | 5 | 11/14/2025 |
| 9.5.2 | 8 | 10/26/2025 |
| 9.5.1 | 8 | 10/10/2025 |
| 9.5.0 | 9 | 9/28/2025 |
| 9.4.2 | 10 | 9/5/2025 |
| 9.4.1 | 9 | 8/15/2025 |
| 9.4.0 | 10 | 8/1/2025 |
| 9.3.2 | 11 | 6/27/2025 |
| 9.3.1 | 4 | 6/14/2025 |
| 9.3.0 | 3 | 6/15/2025 |
| 9.2.1 | 4 | 6/15/2025 |
| 9.2.0 | 5 | 6/15/2025 |
| 9.1.0 | 3 | 6/15/2025 |
| 9.0.0 | 4 | 6/15/2025 |
| 9.0.0-rc.1.24511.1 | 2 | 6/15/2025 |
| 8.2.2 | 3 | 6/15/2025 |
| 8.2.1 | 2 | 6/15/2025 |
| 8.2.0 | 4 | 6/16/2025 |
| 8.1.0 | 7 | 6/9/2025 |
| 8.0.2 | 4 | 6/15/2025 |
| 8.0.1 | 5 | 6/15/2025 |
| 8.0.0 | 4 | 6/6/2025 |
| 8.0.0-preview.7.24251.11 | 2 | 6/15/2025 |
| 8.0.0-preview.6.24214.1 | 12 | 6/8/2025 |
| 8.0.0-preview.5.24201.12 | 12 | 6/15/2025 |
| 8.0.0-preview.4.24156.9 | 11 | 6/15/2025 |
| 8.0.0-preview.3.24105.21 | 9 | 6/15/2025 |
| 8.0.0-preview.2.23619.3 | 10 | 6/12/2025 |
| 8.0.0-preview.1.23557.2 | 10 | 6/15/2025 |