"Authorization failed for container registry to access image details" error.

Orhan Ozdemir 5 Reputation points
2024-09-02T12:45:47.2133333+00:00

I am trying to deploy a model from a prompt flow. 

However deployments fail with the error message given below. 

"Authorization failed for container registry to access image details" error.

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

1 answer

Sort by: Most helpful
  1. akinbade abiola 18,305 Reputation points
    2024-09-02T14:13:37.3+00:00

    You need to ensure he service trying to access the ACR is properly authenticated. I will recommend configuring a managed Identitiy for this. You can then assign a reader or contributor role to this:

    Assign Azure roles to a managed identity (Preview)

    To create a managed Identity you can:

    In the left-hand menu, select Identity under the Settings section.

    Under the System-assigned tab, switch the Status to On.

    Click Save. This will create a system-assigned managed identity.

    Also See:

    https://learn.microsoft.com/en-us/azure/container-registry/container-registry-troubleshoot-login

    https://learn.microsoft.com/en-us/azure/container-registry/container-registry-roles?tabs=azure-cli

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola


Your answer

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