Share via

AKS: AgentPool UAMI blocked from token generation (conditional access policies) - image pull fails

AndrewKrause-1311 5 Reputation points
2026-02-21T09:17:46.23+00:00

We've suddenly started seeing failures in our AKS clusters when attempting to pull images from our ACR. We have not changed anything, but I've verified:

  1. The agent pool UAMI has AcrPull assigned to the ACR.
  2. The image and its tag exist in the ACR.
  3. The UAMI is assigned to the VMSS instance.
Azure Kubernetes Service
Azure Kubernetes Service

An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.

{count} votes

3 answers

Sort by: Most helpful
  1. AndrewKrause-1311 5 Reputation points
    2026-02-23T16:09:15+00:00

    Tenant admin was responsible for some policy change which was reverted/resolved over the weekend.

    1 person found this answer helpful.
    0 comments No comments

  2. Nikhil Duserla 9,685 Reputation points Microsoft External Staff Moderator
    2026-02-22T17:49:07.7033333+00:00

    Hello @AndrewKrause-1311 ,

    Thanks for your response. In tenant, Open Entra ID → Monitoring & Health → Sign-in Logs. Apply a filter using the Correlation ID from your error:

    Then select the Conditional Access tab to identify which policy blocked the sign-in- https://docs.azure.cn/en-us/entra/identity/conditional-access/troubleshoot-conditional-access

    That just means the token still isn’t being issued due to Conditional Access. Once you fix the CA policy causing AADSTS53003, the portal action will work normally.

    0 comments No comments

  3. Saraswathi Devadula 14,410 Reputation points Microsoft External Staff Moderator
    2026-02-21T10:00:24.6266667+00:00

    Hello **AndrewKrause-1311

    **It looks like you're encountering issues with your AKS cluster being blocked from pulling images from your Azure Container Registry (ACR) due to a Conditional Access policy. The error message you're seeing (AADSTS53003: Access has been blocked by Conditional Access policies) suggests that the user-assigned managed identity (UAMI) for your AKS cluster might not have the necessary permissions due to these policies.

    Here are a few steps you can follow to resolve this issue:

    1. Verify UAMI Configuration: Ensure that your agent pool UAMI has the AcrPull role assigned to the correct ACR. You can check this by running:
         az role assignment list --assignee <UAMI-ID> --scope /subscriptions/<Subscription-ID>/resourceGroups/<ResourceGroup-Name>/providers/Microsoft.ContainerRegistry/registries/<ACR-Name>
      
    2. Check Conditional Access Policies: Conditional Access policies in Azure AD may be preventing the UAMI from obtaining tokens needed to pull images. You may need to adjust these policies or add exclusions for the UAMI used by your AKS. Work with your Azure AD administrator to review and modify these policies.
    3. Reassign Kubelet Identity: If there are misconfigurations with the kubelet identity, consider reassigning it to your VM Scale Set. Run the following command to update the AKS cluster, which can help in re-establishing the kubelet identity:
         az aks update --resource-group <MyResourceGroup> --name <MyManagedCluster>
      
    4. Token Issuance: Make sure that the UAMI is allowed to issue tokens. This might involve checking the Azure AD settings and ensuring that the application has the necessary API permissions to access the ACR.
    5. Check Expiry of Service Principal: If your AKS cluster relies on a service principal, make sure it hasn't expired. You can check this and update credentials if necessary.
    6. Kubelet Logs: Continue reviewing the kubelet logs for any additional error messages that could provide further insights into failures:
      • You're looking for logs indicating authentication issues or network problems.

    For further troubleshooting, here are some additional resources you might find useful:
    https://learn.microsoft.com/en-us/troubleshoot/azure/azure-kubernetes/extensions/cannot-pull-image-from-acr-to-aks-cluster#before-you-begin
    https://learn.microsoft.com/en-us/entra/identity/conditional-access/overview

    Let me know if you need any more assistance or if any of these steps clarify the situation!

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.