Description
Type of issue
Missing information
Description
In Aspire 9.2 you can now configure the container apps environment, but it's a bit hard to figure out how to get hold of the resource for configuring.
Maybe the docs here: https://learn.microsoft.com/en-us/dotnet/aspire/azure/configure-aca-environments
Can be added to with an example e.g.
var acaEnv = builder.AddAzureContainerAppEnvironment(Config.ContainEnvironmentName);
acaEnv.ConfigureInfrastructure(config =>
{
var resources = config.GetProvisionableResources();
var containerEnvironment = resources.OfType<ContainerAppManagedEnvironment>().FirstOrDefault();
// Add your customizations for the container apps environment here...
});
I've not found an easy way with the API as it is to discover what resource type you need to fetch, e.g. 'ContainerAppManagedEnvironment' to configure things (in my case I customize the name based on the environment). Hopefully there's some nicer extensions in the future to make this a little easer/cleaner, but in the mean time, would be handy in the docs.
Page URL
https://learn.microsoft.com/en-us/dotnet/aspire/azure/configure-aca-environments
Content source URL
https://github.com/dotnet/docs-aspire/blob/main/docs/azure/configure-aca-environments.md
Document Version Independent Id
5cd73be0-379f-8fc5-40aa-4646e53dbd32
Platform Id
dd778db6-0e7e-70d6-c890-ff8cece45e07
Article author
Metadata
Metadata
Assignees
Type
Projects
Status