Share via

Unable to view images pushed to container registory

ritesh 0 Reputation points
2026-04-01T09:18:45.79+00:00

I am unable to view the images inside the container registery even after having owner permission to the registry

Azure Container Registry
Azure Container Registry

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


1 answer

Sort by: Most helpful
  1. Ankit Yadav 13,600 Reputation points Microsoft External Staff Moderator
    2026-04-01T09:36:34.9633333+00:00

    Hello @ritesh ,

    Kindly double check role assignments:

    1. Go to your Azure Container Registry ->Access Control (IAM) -> Role assignments.
    2. Filter for your Service Principal and confirm the roles are listed (ACRPush, ACRPull, ACRDelete) and the scope is the right ACR

    If that also doesn't help, can you try out the following steps to create a new Service Principal and assign the roles to it.

    [note: These are the steps that I followed to replicate the issue on my end, and it worked out perfectly fine for me]

    1. Create Service Principal using the script listed out here: https://learn.microsoft.com/en-us/azure/container-registry/container-registry-auth-service-principal#create-a-service-principal After running the script, it'll will show created Service Principal and the password, save it with you. NOTE: In the below script, Replace ACR_NAME=<Your-ACR-name>, SERVICE_PRINCIPAL_NAME=<Your-New-SP-name> 
            #!/bin/bash
         ACR_NAME=$containerRegistry
         SERVICE_PRINCIPAL_NAME=$servicePrincipal
         ACR_REGISTRY_ID=$(az acr show --name $ACR_NAME --query "id" --output tsv)
         PASSWORD=$(az ad sp create-for-rbac --name $SERVICE_PRINCIPAL_NAME --scopes $ACR_REGISTRY_ID --role acrpush --query "password" --output tsv)
         USER_NAME=$(az ad sp list --display-name $SERVICE_PRINCIPAL_NAME --query "[].appId" --output tsv)
         # Output the service principal's credentials; use these in your services and
         # applications to authenticate to the container registry.
         echo "Service principal ID: $USER_NAME"
         echo "Service principal password: $PASSWORD"
      
      Service principal ID: XXXXXXXXXXXXXXXXXXXXXXXX Service principal password: XXXXXXXXXXXXXXXXXXXXXXXX 
    2. Use the below command to login to Azure Container Registry:
            az acr login --name <ACR-Name> -u <Service principal ID> -p <Service principal password>
      
    3. Use below command to list out the repository:
            az acr repository list --name <ACR-Name> --output table
      
      This should give you the repository list in the output.

    If this also doesn't help then to help you further with the case, we need some additional information from you.

    Could you please provide the following details so we can investigate:

    1. Are you the Subscription Owner or Resource Group owner? If not, what RBAC roles or permissions are assigned to your user account?
    2. Can you pull or push images to the ACR?
    3. Can you view the images using Azure CLI, for example with the az acr repository show command? Sample command: az acr repository show -n myregistry --image hello-world:latest Reference: https://learn.microsoft.com/en-us/cli/azure/acr/repository?view=azure-cli-latest#az-acr-repository-show

    Credits:

    0 comments No comments

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.