I'm trying to set up my App Container Service so that it can pull docker images from our ACR using Managed Identity, rather than storing the username and password in the app settings (apart from anything else we want to script these deployments and if the username and password are needed by the app service then we'd have to store them in source control).
Unbelievably, I cannot find any docs on this scenario. The closest I've found is using Managed Identity to pull an ACR image from a VM [https://docs.microsoft.com/en-us/azure/container-registry/container-registry-authentication-managed-identity] , which I can't use as a guide as the final step (the only bit I'm missing) is to SSH into the VM and run az acr login --name myContainerRegistry
at the command line.
Where I've got to:
- I've created the ACR and the Container App Service
- I've granted the role
ACR Pull
andReader
to the system-assigned Identity of the app service - The app service is getting access denied when trying to pull the container image
I don't know what to do next; like I said, I can't find any guides on this scenario.
az webapp config container set
command. And note that that's only necessary when deploying a new environment, not for every code deployment. Deploying environments is infrastructure automation rather than CI/CD. docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/… – David Browne - Microsoft