Andrew Dean
Andrew Dean

Reputation: 325

Azure deployment The value of deployment parameter 'dockerRegistryUrl' is null

Trying to deploy a web app using docker-compose and azure container registry and some public images but when I get to the review it gives me this error.

The value of deployment parameter 'dockerRegistryUrl' is null. Please specify the value or use the parameter reference. See https://aka.ms/resource-manager-parameter-files for details.

here is how I'm linking the azure container registry

    image: csym023.azurecr.io/csym023_api:latest
    ...
    image: csym023.azurecr.io/csym023_app:latest

think I may have set up the docker-compose file incorrectly for the azure container registry but I am not sure. the documentation link isn't very clear to me it doesn't say anything about the 'dockerRegistryUrl' or where to upload the resource manager parameter file.

here is the Docker compose file

Upvotes: 2

Views: 1695

Answers (1)

Charles Xu
Charles Xu

Reputation: 31414

For your issue, actually, the "dockerRegistryUrl" is not a property in the docker-compose file, it's an environment variable of the Azure Web App for Container if you use the template.

So if you use the ACR for you images, you need to set the environment variables DOCKER-REGISTRY-SERVER-UTL, DOCKER-REGISTRY-SERVER-PASSWORD and DOCKER-REGISTRY-SERVER-USERNAME in the app settings. Also, WEBSITES_ENABLE_APP_SERVICE_STORAGE is necessary.

In addition, you need to meet the Docker compose options which supported in Azure. And you can the details here.

Upvotes: 1

Related Questions