Hello @David Hirst,
It appears you're encountering an authentication issue while attempting to push an image to Azure Container Registry (ACR). Still having Owner role to the Container Registry to push and pull images you have to enable the admin user. This generates a username
, password
, and password2
.
Once enabled the admin user try log in now to Azure Container Registry using the command:
az acr login --name my-container-registry
Tag your docker image:
docker tag image-name:image-tag my-container-registry.azurecr.io/image-name:image-tag
And now push image to Azure Container Registry using the command:
docker push my-container-registry.azurecr.io/image-name:image-tag
Remove the docker login step from your build, docker tasks handle auth for you using azure subscription endpoint (if it is properly configured), if not - give your service principal permissions to acrpush
).
Additionally, case sensitivity may lead to issues. When using its server url in docker commands, to avoid authentication errors, use all lowercase.
If you have any further queries, do let us know.