Skip to content

Azure acr Commands


az acr commands used for managing private registries with Azure Container Registries.

This page contains a list of commonly used az acr commands.

Note: make sure that you login into azure and select the azure subscription before running any az acr commands.

Azure login

az login
az account list --output table

Select the subscription

az account set -s "anji.keesari"
az account show --output table

Connect to Container Registry

az acr login --name acr1dev
Login Succeeded


In case if you get following error run the docker desktop to fix the issue.

You may want to use 'az acr login -n acr1dev --expose-token' to get an access token, which does not require Docker to be installed.
2023-02-20 21:38:37.187022 An error occurred: DOCKER_COMMAND_ERROR
error during connect: This error may indicate that the docker daemon is not running.: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json": open //./pipe/docker_engine: The system cannot find the file specified.

To get the login server address

az acr list -g "rg-acr-dev" --query "[].{acrLoginServer:loginServer}" --output table



Import container images

$acrName = "acr1dev"
$imageName = ""

az acr import --name $acrName --source $imageName --image $imageName 
az acr import --name "acr1dev" --source "" --image ""

List registries

Lists all the container registries under the current subscription.

az acr repository list --name acr1dev --output table



show tags

show tags of a image in the acr

az acr repository show-tags --name acr1dev --repository --output table



az acr check-health -n "acr1dev" -y


Docker daemon status: available
Docker version: 'Docker version 20.10.17, build a89b842, platform linux/amd64'
Docker pull of '' : OK
Azure CLI version: 2.44.1
DNS lookup to at IP : OK
Challenge endpoint : OK
Fetch refresh token for registry '' : OK
Fetch access token for registry '' : OK
Helm version: 3.8.2
2023-02-20 21:58:29.062713 An error occurred: NOTARY_COMMAND_ERROR
Please verify if notary is installed.

Please refer to for more information.

helm list

List all helm charts in an Azure Container Registry.

az acr helm list -n 'acr1dev'