Azure AKS / Container Apps Pull Failed: 401 Unauthorized from ACR
Cluster managed identity lacks `AcrPull` role assignment on Azure Container Registry.
Runs locally in browser
Free · No login
Independently Verified 2026-11-25
v4.1.0
Identifier: Azure AKS / Container Apps Pull Failed
Platform: Cloud
Common Root Causes:
- Cluster managed identity lacks `AcrPull` role assignment on Azure Container Registry.
Interactive Diagnostic Checklist
Verified Solutions:
- Attach ACR via `az aks update --attach-acr <acrName>` or assign `AcrPull` to Managed Identity.
Safe Diagnostic Command:
az role assignment list --scope <acr-id>
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.
Technical Explanation
Cluster managed identity lacks `AcrPull` role assignment on Azure Container Registry. Recommended diagnostic: `az role assignment list --scope <acr-id>`. Remediation: Attach ACR via `az aks update --attach-acr <acrName>` or assign `AcrPull` to Managed Identity.
Worked Examples
- Run `az role assignment list --scope <acr-id>` to verify root cause before applying the remediation.
Limitations & Assumptions
- Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.
Source References & Verification
Resource ID: err-azure-acr-unauthorized-pull · Independently verified: 2026-11-25