-
Notifications
You must be signed in to change notification settings - Fork 168
Description
Proposed topic or title
Allow Azure Container App environment to be customized in .NET Aspire
Location in table of contents.
Azure
Reason for the article
In 9.2, we added a new feature: AddAzureContainerAppEnvironment, which allows developers to model the ACA environment in the Aspire app model. This allows for the environment and supporting resources (Container Registry, volume file shares) to be customized by the Aspire AppHost using Azure.Provisioning APIs.
NOTE: AddAzureContainerAppEnvironment uses a different Azure resource naming scheme than azd does. If you are upgrading an existing deployment after calling AddAzureContainerAppEnvironment, you will get duplicate Azure resources deployed. To mitigate this issue, you can call the WithAzdResourceNaming method, which will revert the naming convention to use the same as azd.
Article abstract
This change introduces a new AzureContainerAppsEnviromentResource that represents an Azure Container App environment. The goal is to move all of the generated infrastructure to the app host and out of azd. This allows users to model and tweak most things to do with deployment in C#, instead of dropping to bicep via infra synth.
Relevant searches
No response