6

I cannot find a way to add environment values to Azure Container App in the portal.

How can I add within Azure Portal?

Ramesh
  • 1,041
  • 15
  • 39

2 Answers2

5

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
CSharpRocks
  • 6,791
  • 1
  • 21
  • 27
4

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"
Malt
  • 151
  • 1
  • 3