I cannot find a way to add environment values to Azure Container App
in the portal.
How can I add within Azure Portal
?
I cannot find a way to add environment values to Azure Container App
in the portal.
How can I add within Azure Portal
?
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
Create and update are slightly different...
az containerapp create ... \
--env-vars "FOO_BAR_1=secretref:foo-bar-1" "FOO_BAR_2=$FOO_BAR_2"
and
az containerapp update ... \
--set-env-vars "FOO_BAR_2=$FOO_BAR_2"