Azure Container Registry
List image tags in Azure Container Registry
Read tag names and immutable digest metadata for one repository without pulling image layers or changing registry state.
Documentation reviewed · 2 methods with sources
Ways to do it
API
GET {endpoint}/acr/v1/{imageName}/_tags
List tags and their digest, created time, and last-update time for one repository. The API supports n, last, and orderby for bounded pagination.
Read source: GET {endpoint}/acr/v1/{imageName}/_tags reference- Requirements
- An Azure Container Registry endpoint, an Entra OAuth token for https://containerregistry.azure.net/.default, and read/list permission on the repository.
- Limitations
- The registry data-plane response is repository-scoped. Use the Link response header or last cursor to continue, and do not treat tag metadata as a vulnerability scan.
Example shell
curl --fail -H "Authorization: Bearer $AZURE_ACR_TOKEN" "https://$ACR_LOGIN_SERVER/acr/v1/$REPOSITORY/_tags?api-version=2021-07-01&n=100&orderby=timedesc"CLI
az acr repository show-tags
Use Azure CLI to list names or detailed tag metadata for a repository, with --top and --orderby for a bounded read.
Read source: az acr repository show-tags reference- Requirements
- Azure CLI, az login, the registry name, and permission to read/list the repository.
- Limitations
- --top bounds one response. The command does not download manifests or layers, and --detail may increase response size.
Example shell
az acr repository show-tags --name "$ACR_NAME" --repository "$REPOSITORY" --top 100 --orderby time_desc --detail --output json