Unable to run a job in azure ml batch endpoint

Engineering IOT 0 Reputation points
2025-02-13T20:29:05.33+00:00

Error Failed to pull Docker image xxxxxxcontainerregistry.azurecr.io/azureml/azureml_e473xxxxxxxxxxxxxxx. This error may occur because the compute could not authenticate with the Docker registry to pull the image. If using ACR please ensure the ACR has Admin user enabled or a Managed Identity with AcrPull access to the ACR is assigned to the compute. If the ACR Admin user's password was changed recently it may be necessary to synchronize the workspace keys.

Added AcrPull and Contributor role to my ML Workspace and batch endpoint managed identity. Still getting the same error.

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
483 questions
Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,137 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pavankumar Purilla 3,485 Reputation points Microsoft Vendor
    2025-02-13T23:19:46.54+00:00

    Hi Engineering IOT,
    Greetings & Welcome to Microsoft Q&A forum! Thanks for posting your query!

    It looks like you have already assigned the AcrPull and Contributor roles to both your ML Workspace and batch endpoint managed identity. However, the issue may be that the compute running the job does not have a Managed Identity assigned or lacks the necessary permissions to pull images from Azure Container Registry (ACR). To resolve this, please check if your compute has a Managed Identity.

    If no identity is assigned, you can enable a System Assigned Managed Identity Once assigned, grant the compute’s identity the AcrPull role on ACR. After making these changes, restart the compute to ensure the new permissions take effect.
    For more information: Azure Container Registry without admin user

    I hope this information helps.

    0 comments No comments

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.