Search code examples
azureazure-container-apps

How to add environment variables to Azure Container App


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

How can I add within Azure Portal?


Solution

  • 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