Change Azure App Service app Publishing Type

If an Azure App Service is set up as a code publishing type, but you need to change it later to a docker type, you cannot change the type through the Portal. You can, however, change the type through the Azure CLI.

To change an app to a docker publish type, run the following command:

az webapp config container set --name <app-name> --resource-group <resource-group> --docker-custom-image-name <acr-name>.azurecr.io/<app-name> --docker-registry-server-url https://<acr-name>.azurecr.io