Python sdk for Azure Container Groups fails with InaccessibleImage error

sahil desai 0 Reputation points
2025-01-24T16:39:19.5133333+00:00

I am trying to use the azure-mgmt-containerinstance sdk (version 10.1.0) to update a container group to run with a new image from a container pushed to an azure container registry within my subscription. I get the following error:azure.core.exceptions.HttpResponseError: (InaccessibleImage) The image 'xx' in container group 'xx' is not accessible. Please check the image and registry credential.

Code: InaccessibleImage

Message: The image 'xx' in container group 'xx' is not accessible. Please check the image and registry credential.

I have given the managed identity of my container instances AcrPull and Reader permissions on my azure container registry and am still receiving this error.

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
722 questions
{count} votes

1 answer

Sort by: Most helpful
  1. anashetty 2,040 Reputation points Microsoft Vendor
    2025-01-24T21:40:39.83+00:00

    Hi sahil desai,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    We understand from your query that you are having trouble accessing your Azure Container Registry image. The error message you received indicates that the image is not accessible. This could be due to incorrect registry credentials or incorrect image name.

    Check that the correct roles are assigned to the Azure Container Registry. If the registry has public network access enabled, ensure there are no firewall rules blocking the ACI's region. If you're using private endpoints, ensure the ACI is deployed in the same VNet and subnet.

    For reference https://learn.microsoft.com/en-us/answers/questions/1146480/how-to-access-an-image-when-setting-up-a-container
    https://learn.microsoft.com/en-us/answers/questions/1289158/container-image-unable-to-pull-private-azure-conta

    If you have any further queries, please let me know.


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.