I've created an Web App for Containers instance using a custom container; however, it looks as though my Web App's "App Settings" are not being correctly passed into the container as environment variables. When viewing the deployment logs, I can see other environment variables being passed through at runtime, ie: WEBSITES_ENABLE_APP_SERVICE_STORAGE, but my custom settings don't seem to work.
docker run -d -p 1906:80 --name test-deploy_1_a5aeafaa -e WEBSITES_ENABLE_APP_SERVICE_STORAGE=true -e WEBSITE_SITE_NAME=test-deploy -e WEBSITE_AUTH_ENABLED=False -e PORT=80 -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=test-deploy.azurewebsites.net -e WEBSITE_INSTANCE_ID=<id>test.azurecr.io/app:latest
If I SSH into the container directly and try to use either env
or printenv
, I don't see any of the app settings I configured listed. I'm also able to confirm that the application's code is not able to retrieve the specific environment variables due to the log messages available through the application itself.
I'm following the same approach to defining app settings for custom containers as is described here: https://video2.skills-academy.com/en-us/azure/app-service/configure-custom-container?pivots=container-linux#configure-environment-variables
Has anyone run into this issue before, and can offer any advice?