How to access an image when setting up a container group via Azure CLI

Andrea Glatthor 21 Reputation points
2022-12-30T09:00:26.53+00:00

I'm following this How-To guide:
https://learn.microsoft.com/en-us/azure/container-instances/container-instances-container-group-ssl

In the deploy-aci.yaml I need to replace the image with my own private image (stored in an Azure container registry). The example code is:

  • name: my-app
    properties:
    image: mcr.microsoft.com/azuredocs/aci-helloworld

I tried this:

image: <mycontainerregistryname>.azurecr.io/<myrepositoryname>:<tag>

... and get an error:

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

What is the correct syntax? Do I have to put in the password of the container registry?

Azure Container Registry
Azure Container Registry

An Azure service that provides a registry of Docker and Open Container Initiative images.

Azure Container Instances
0 comments No comments

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.