Zemires.Aspire.Hosting.Terraform.Azure
13.6.0-preview.2
dotnet add package Zemires.Aspire.Hosting.Terraform.Azure --version 13.6.0-preview.2
NuGet\Install-Package Zemires.Aspire.Hosting.Terraform.Azure -Version 13.6.0-preview.2
<PackageReference Include="Zemires.Aspire.Hosting.Terraform.Azure" Version="13.6.0-preview.2" />
<PackageVersion Include="Zemires.Aspire.Hosting.Terraform.Azure" Version="13.6.0-preview.2" />
<PackageReference Include="Zemires.Aspire.Hosting.Terraform.Azure" />
paket add Zemires.Aspire.Hosting.Terraform.Azure --version 13.6.0-preview.2
#r "nuget: Zemires.Aspire.Hosting.Terraform.Azure, 13.6.0-preview.2"
#:package Zemires.Aspire.Hosting.Terraform.Azure@13.6.0-preview.2
#addin nuget:?package=Zemires.Aspire.Hosting.Terraform.Azure&version=13.6.0-preview.2&prerelease
#tool nuget:?package=Zemires.Aspire.Hosting.Terraform.Azure&version=13.6.0-preview.2&prerelease
Zemires.Aspire.Hosting.Terraform.Azure
An Aspire integration that publishes Azure resources and projects/containers to Azure Container Apps using Terraform. Built on Zemires.Aspire.Hosting.Terraform.
Install the package
In your AppHost project:
dotnet add package Zemires.Aspire.Hosting.Terraform.Azure
Example usage
var builder = DistributedApplication.CreateBuilder(args);
// Templates default to templates/azure-container-apps of https://github.com/zemires/zemires-aspire;
// pass a local folder or another URL to customize them.
builder.AddTerraformAzureContainerAppEnvironment("env");
var storage = builder.AddAzureStorage("storage");
var queue = storage.AddQueue("queue1", "myqueue");
var db = builder.AddAzureSqlServer("sql").AddDatabase("db");
builder.AddProject<Projects.ApiService>("api")
.WithReference(queue)
.WithReference(db);
builder.Build().Run();
Supported Azure resources include Storage (blob, queue, table), Key Vault, SQL, PostgreSQL, Redis / Managed Redis, Cosmos DB, Service Bus, Event Hubs, SignalR, AI Search, Application Insights, user-assigned identities and role assignments.
aspire deploy provisions the container registry, applies the Terraform configuration and deploys the container apps. Requires the az CLI and the OpenTofu CLI tofu (default; use the Terraform CLI instead by setting Terraform:Executor:ExecutablePath to terraform in the AppHost's appsettings.json, see Zemires.Aspire.Hosting.Terraform).
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 is compatible. 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 is compatible. 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. |
-
net10.0
- Aspire.Hosting (>= 13.6.1)
- Aspire.Hosting.Azure (>= 13.6.1)
- Aspire.Hosting.Azure.KeyVault (>= 13.6.1)
- Handlebars.Net (>= 2.4.3)
- Handlebars.Net.Extension.Json (>= 1.0.0)
- Handlebars.Net.Helpers (>= 2.5.5)
- Handlebars.Net.Helpers.DynamicLinq (>= 2.5.5)
- MessagePack (>= 2.5.307)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.13)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.13)
- Microsoft.Extensions.Hosting (>= 10.0.13)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.13)
- Microsoft.Extensions.Http (>= 10.0.13)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.20.0)
- OpenTelemetry.Extensions.Hosting (>= 1.20.0)
- System.IO.Hashing (>= 10.0.13)
- Zemires.Aspire.Hosting.Terraform (>= 13.6.0-preview.2)
-
net8.0
- Aspire.Hosting (>= 13.6.1)
- Aspire.Hosting.Azure (>= 13.6.1)
- Aspire.Hosting.Azure.KeyVault (>= 13.6.1)
- Handlebars.Net (>= 2.4.3)
- Handlebars.Net.Extension.Json (>= 1.0.0)
- Handlebars.Net.Helpers (>= 2.5.5)
- Handlebars.Net.Helpers.DynamicLinq (>= 2.5.5)
- MessagePack (>= 2.5.307)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.13)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.13)
- Microsoft.Extensions.Hosting (>= 10.0.13)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.13)
- Microsoft.Extensions.Http (>= 10.0.13)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.20.0)
- OpenTelemetry.Extensions.Hosting (>= 1.20.0)
- System.IO.Hashing (>= 10.0.13)
- Zemires.Aspire.Hosting.Terraform (>= 13.6.0-preview.2)
-
net9.0
- Aspire.Hosting (>= 13.6.1)
- Aspire.Hosting.Azure (>= 13.6.1)
- Aspire.Hosting.Azure.KeyVault (>= 13.6.1)
- Handlebars.Net (>= 2.4.3)
- Handlebars.Net.Extension.Json (>= 1.0.0)
- Handlebars.Net.Helpers (>= 2.5.5)
- Handlebars.Net.Helpers.DynamicLinq (>= 2.5.5)
- MessagePack (>= 2.5.307)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.13)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.13)
- Microsoft.Extensions.Hosting (>= 10.0.13)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.13)
- Microsoft.Extensions.Http (>= 10.0.13)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.20.0)
- OpenTelemetry.Extensions.Hosting (>= 1.20.0)
- System.IO.Hashing (>= 10.0.13)
- Zemires.Aspire.Hosting.Terraform (>= 13.6.0-preview.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 13.6.0-preview.2 | 41 | 10/16/2026 |
| 13.6.0-preview.1 | 40 | 10/13/2026 |