user2058413
user2058413

Reputation: 815

Azure Container App ASPNETCORE_ENVIRONMENT

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

Answers (1)

Lex Li
Lex Li

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,

enter image description here

and that's where you should set ASPNET_CORE_ENVIRONMENT if you want.

Upvotes: 1

Related Questions