Hello Dominik,
The "UNAUTHORIZED" error when using system- or user-assigned managed identities to pull images from ACR fundamentally indicates that the identity does not have the required token-based permissions or cannot reach the registry endpoint. Correcting this typically involves:
- Assigning the AcrPull role to the MI at the registry scope.
- Avoiding MI conflicts in Windows App Service deployments.
- Accounting for role propagation latency and using DOCKER_SKIP_IMAGE_VALIDATION if necessary.
- Confirming network connectivity for private endpoints.
- Built-in Azure roles granting this include:
-
AcrPull(most specific) -
OwnerorContributor(broader roles) -
Reader + AcrPull(custom combination)
-
Can't pull images from Azure Container Registry to Azure Web App
Please check above steps and let me know with an update.