How to fix the issue of not able to view the image in my container registry while creating the container instance in Azure?

Kurian Uthuppu 0 Reputation points
2023-12-06T10:33:42.8233333+00:00

Image is rootscregistry.azurecr.io/server:latest

in standard Azure container registry with public network access enabled and I am able to pull the image to local as well.

The image is visible for selecting in Azure webapp but not available for selection while creating azure container instance.

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
441 questions
Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
687 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. vipullag-MSFT 26,211 Reputation points
    2023-12-07T05:58:54.37+00:00

    Hello Kurian Uthuppu

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    To fix the issue of not being able to view the image in your container registry while creating the container instance in Azure, you can try the following steps:

    -Just cross check once with Azure CLI if the image exists or not:

    az acr repository show-tags --name <registry-name> --repository <repository-name>

    -Make sure that you have the correct permissions to access the container registry. You can check this by running the following command in the Azure CLI:

    az acr check-health --name <registry-name>

    This command will check the health of your container registry and report any issues with authentication or connectivity.

    -Make sure that the container registry is in the same Azure region as the Azure Container Instance. If they are in different regions, you may need to enable global access for the container registry.

    -Check if the container registry is behind a firewall or network security group (NSG). If so, you may need to add an exception to allow traffic from the Azure Container Instance to the container registry.

    If you have checked all of the above and still cannot see the image while creating the container instance, try creating a new Azure Container Registry and push the image to the new registry. Then, try creating the container instance using the image from the new registry and see if that is working.

    Hope this helps.
    If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.


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.