Continuous deployment with Web App for Containers

In this tutorial, you configure continuous deployment for a custom container image from managed Azure Container Registry repositories or Docker Hub.

Sign in to Azure

Sign in to the Azure portal.

Enable the continuous deployment feature

Enable the continuous deployment feature by using Azure CLI and executing the following command:

az webapp deployment container config --name name --resource-group myResourceGroup --enable-cd true

In the Azure portal, select the App Service option on the left side of the page.

Select the name of the app for which you want to configure Docker Hub continuous deployment.

On the Docker Container page, select On, and then select Save to enable continuous deployment.

Screenshot of app setting

Prepare the webhook URL

Obtain the webhook URL by using Azure CLI and executing the following command:

az webapp deployment container show-cd-url --name sname1 --resource-group rgname

Make a note of the webhook URL. You'll need it in the next section. https://<publishingusername>:<publishingpwd>@<sitename>.scm.azurewebsites.net/docker/hook.

You can obtain your publishingusername and publishingpwd by downloading the web app publish profile using the Azure portal.

Screenshot of adding webhook 2

Add a webhook

To add a webhook, follow the steps in these guides:

Next steps