Docker Registry Service Connection could not access ACR via MSI Authentication Type

Williani 25 Reputation points
2023-06-08T01:47:42.61+00:00

I had created Docker Registry Service Connection on Azure DevOps to use MSI as authentication type. However, it does not able to access the ACR. If to use 'Others' or SPN as authentication type, the issue will not happen.

Error Message:

##[error]Unhandled: Could not fetch access token for Managed Service Principal. Please configure Managed Service Identity (MSI) for virtual machine 'https://aka.ms/azure-msi-docs'. Status code: %s, status message: %s

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
{count} vote

1 answer

Sort by: Most helpful
  1. AirGordon 7,165 Reputation points
    2023-06-08T07:05:46.43+00:00

    Is your Azure DevOps agent self-hosted on a virtual machine?

    Did you enable a managed Identity for the VM and then give that identity RBAC on your ACR?


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.