Manage environment variables on Azure Container Apps
In Azure Container Apps, you're able to set runtime environment variables. These variables can be set as manually entries or as references to secrets. These environment variables are loaded onto your Container App during runtime.
Configure environment variables
You can configure the Environment Variables upon the creation of the Container App or later by creating a new revision.
If you're creating a new Container App through the Azure portal, you can set up the environment variables on the Container section:

Add environment variables on existing container apps
After the Container App is created, the only way to update the Container App environment variables is by creating a new revision with the needed changes.
In the Azure portal, search for Container Apps and then select your app.

In the app's left menu, select Revisions and replicas > Create new revision

Then you have to edit the current existing container image:

In the Environment variables section, you can Add new Environment variables by clicking on Add.
Then set the Name of your Environment variable and the Source (it can be a reference to a secret).

If you select the Source as manual, you can manually input the Environment variable value.

No comments:
Post a Comment