0

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.

1 Answer 1

1

When you attempt to create and deploy a new revision, you actually can specify the environment variables for the container instance in the dialog,

enter image description here

and that's where you should set the Environment Variable: ASPNETCORE_ENVIRONMENT if you want.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.