Hey!
If you're seeing an unauthorized error during docker push to ACR, even after a successful docker login, check the following:
- Correct image tag – Make sure your image is tagged with the ACR login server name: docker tag myimage <yourregistry>.azurecr.io/myimage
- Admin user enabled – Confirm that the Admin user toggle is ON under ACR → Access keys.
Proper role assignment – Ensure your identity (user/VM) has AcrPush or Owner role on the ACR resource, not just at subscription/resource group level.
Auth token issues – Try docker logout <yourregistry>.azurecr.io and login again to clear stale tokens.
Also, worth checking/reconfirming ---- If using Managed Identity (e.g., from a VM), use az acr login --name <yourregistry> instead of docker login.
Let me know if this helps!