Microsoft Azure Developer Associate AZ-204 Practice Question
You deploy a Linux-based Azure App Service Web App that runs a custom image stored in a private Azure Container Registry. The image tag is set to "webapi:prod". You push further updates to the same tag several times a week. You need the web app to redeploy automatically each time the tag is updated, without changing the container configuration manually. Which setting should you configure on the web app?
Add an application setting named WEBSITES_PORT with the value 80.
Enable Always On in the Configuration page.
Add an application setting named DOCKER_ENABLE_CI with the value true.
Add an application setting named WEBSITE_PULL_IMAGE_ON_STARTUP with the value true.
Azure App Service supports continuous deployment for custom container images. Enabling this feature causes the platform to create a webhook in Azure Container Registry and to restart the web app whenever a new image with the same tag is pushed. This capability is enabled by adding the application setting "DOCKER_ENABLE_CI" and setting its value to "true" (the portal adds this automatically when you switch on Continuous Deployment). The other settings do not trigger image pulls when the tag is updated: WEBSITE_PULL_IMAGE_ON_STARTUP is not a recognized key, WEBSITES_PORT only defines the container's listening port, and Always On merely prevents the app from unloading during idle periods.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is DOCKER_ENABLE_CI used for in Azure App Service?
Open an interactive chat with Bash
How does Azure App Service use webhooks for container redeployment?