azure-container-registry-cli
What it does
This agent helps manage Azure Container Registry (ACR) using command-line tools. It allows you to create registries, log in, build and push container images, import images from elsewhere, and check registry health.
When to use it
- βWhen you need to create a new container registry in Azure.
- βWhen trying to push or pull container images to Azure.
- βTo manage existing images, such as importing or listing them.
Skill link
https://github.com/github/awesome-copilot/blob/main/skills/azure-container-registry-cli/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βHow do I create a container registry named 'my-registry' in the resource group 'my-group'?β
5 new skills a week. 1 minute to read.
How it works
It uses the 'az acr' tool to communicate with Azure. You type commands like 'az acr create', and the tool sends them to Azure to perform the actions.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Azure Container Registry CLI
Manage Azure Container Registry (ACR) resources using the az acr command group of the Azure CLI.
CLI: az acr ships with core Azure CLI β no extension required (the acrtransfer extension is only needed for export/import pipelines).
Prerequisites
# Install Azure CLI
brew install azure-cli # macOS
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash # Linux
winget install Microsoft.AzureCLI # Windows
# Sign in and select subscription
az login
az account set --subscription {subscription-id}
Quick Start
# Create a registry (SKU: Basic | Standard | Premium)
az acr create --resource-group {rg} --name {registry} --sku Standard
# Authenticate Docker/Podman against the registry
az acr login --name {registry}
# Build and push in the cloud β no local Docker needed
az acr build --registry {registry} --image app:v1 .
# Copy an image from another registry without pull/push
az acr import --name {registry} --source mcr.microsoft.com/hello-world:latest
# List repositories and tags
az acr repository list --name {registry} --output table
az acr repository show-tags --name {registry} --repository app --orderby time_desc
# Diagnose registry connectivity and configuration
az acr check-health --name {registry} --yes
Key Principles
- Prefer
az acr build/ ACR Tasks over localdocker build+docker push: builds run in Azure, work without a local daemon, and integrate with triggers. - Prefer
az acr importto move images between registries: it is server-side, faster, and requires no local storage. - Never enable the admin user for production β use Microsoft Entra identities (RBAC roles
AcrPull/AcrPush, orContainer Registry Repository Reader/Writeron ABAC-enabled registries), repository-scoped tokens, or managed identities. - Premium-only features: geo-replication, private endpoints, retention policies, connected registries, agent pools. (Repository-scoped tokens work in all tiers; zone redundancy is automatic in all tiers in supported regions.)
CLI Structure
az acr
βββ create / delete / list / show / update # Registry lifecycle
βββ login # Docker credential helper (or --expose-token)
βββ check-health / check-name / show-usage # Diagnostics & quota
βββ build # Cloud image build (quick task)
βββ run # Run a command / multi-step task once
βββ task # ACR Tasks (triggers, timers, logs, runs)
βββ agentpool # Dedicated task agent pools (Premium)
βββ import # Server-side image copy into the registry
βββ repository # List/show/delete/untag repos & tags, lock images
βββ manifest # Manifest metadata, delete, OCI referrers
βββ credential # Admin user credentials (avoid in production)
βββ token / scope-map # Repository-scoped tokens (Premium)
βββ replication # Geo-replication (Premium)
βββ network-rule # IP network rules
βββ private-endpoint-connection # Private Link approvals
βββ config # content-trust, retention, soft-delete, ...
βββ cache / credential-set # Artifact cache (pull-through cache) rules
βββ webhook # Push/delete event webhooks
βββ connected-registry # On-premises / IoT connected registries
βββ export-pipeline / import-pipeline / pipeline-run # acrtransfer extension
Reference Files
Read the relevant reference file based on the user's task. Each file contains complete command syntax and examples for its domain.
| File | When to read | Covers |
|---|---|---|
references/auth-and-security.md |
Login failures, permissions, CI/CD or AKS pull access | az acr login (incl. --expose-token), Entra RBAC roles, service principals, managed identities, --attach-acr for AKS, repository-scoped tokens & scope maps, admin user, content trust |
references/build-and-tasks.md |
Building images in Azure, automation, CI triggers | az acr build, az acr run, multi-step task YAML, az acr task (git/base-image/timer triggers, logs, runs), agent pools |
references/images-and-artifacts.md |
Managing repos, tags, cleanup, storage costs | az acr import, repository & manifest commands, untag vs delete, purge (acr purge), image locking, retention policy, soft delete, artifact cache, show-usage |
β¦
FAQ
Do I need to install anything beforehand?
Yes, you need to have the Azure CLI installed on your computer and be logged into your Azure account.
What's the difference between 'build' and 'import'?
'Build' creates a container image directly in Azure. 'Import' copies an image that already exists elsewhere into your Azure registry.
Is it safe to use the 'admin user'?
It's not recommended for production. It's better to use Microsoft Entra identities or repository-scoped tokens for better security.
Details
Original description by the author
Manage Azure Container Registry via the az acr CLI including registries, images, cloud builds, ACR Tasks, authentication, tokens, geo-replication, and networking. Use when working with ACR, az acr commands, pushing/importing/purging container images in Azure, or when the user mentions Azure Container Registry.
repo: github/awesome-copilot
Popularity
- GitHub stars
- 40k
- Ranking position
- #7079
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
acquire-codebase-knowledge
40kHelps your agent understand and document an existing code project. It's useful for onboarding new people or getting an overview of the architecture.
acreadiness-assess
40kEnables your agent to assess a project's readiness for AI and generate a report. It's useful for understanding how well a project is prepared to use AI tools.
acreadiness-generate-instructions
40kHelps your agent create instructions for AI tools based on an assessment. It's useful for improving how AI interacts with code and closing identified gaps.
acreadiness-policy
40kEnables your agent to help define or apply policies for AI project assessment. It's useful for standardizing how projects are evaluated and ensuring compliance.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.