I cannot find a way to add environment values to Azure Container App
in the portal.
How can I add within Azure Portal
?
CodePudding user response:
Azure Container App is in Preview and currently, not all settings are available in the Portal. You can use the CLI to add env variables:
az containerapp update -n MyContainerapp -g MyResourceGroup -v myenvvar=foo,anotherenvvar=bar
Refer to the CLI doc:
az containerapp --help
CodePudding user response:
Currently there is no way to do it via the Portal , you need to do it via the CLI or ARM template
Create a Containerapp with secrets and environment variables
az containerapp create -n MyContainerapp -g MyResourceGroup \
--image MyContainerImage -e MyContainerappEnv \
--secrets mysecret=escapefromtarkov,anothersecret=isadifficultgame
--environment-variables myenvvar=foo,anotherenvvar=bar
Here is the original reference