Reputation: 815
I have multiple microservices running as Azure Container Apps. I am a bit confused about how the ASPNETCORE_ENVIRONMENT is managed. For example, locally, I can change launchsettings.json or Windows Env variables etc... and restart the app to reflect the change. But when running in Container Apps, what's the best way to handle it?
Currently each microservice configuration is in Azure App Configuration grouped by a key (microservice assembly name). May be I can have an environment entry for each service where I change it and restart the container app?
This document talks about Azure App Services but couldn't find any information related to Container Apps.
Upvotes: 0
Views: 859
Reputation: 63299
When you attempt to create and deploy a new revision, you actually can specify the environment variables for the container instance in the dialog,
and that's where you should set ASPNET_CORE_ENVIRONMENT
if you want.
Upvotes: 1