Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)40k Β· #7079

azure-container-registry-cli

Fungsinya

Agen ini membantu mengelola Azure Container Registry (ACR) menggunakan alat command-line. Anda bisa membuat registry, login, membangun dan mengirim (push) image container, mengimpor image dari tempat lain, serta memeriksa kondisi registry.

Kapan dipakai

  • βœ“Saat Anda perlu membuat container registry baru di Azure.
  • βœ“Saat mencoba push atau pull image container ke Azure.
  • βœ“Untuk mengelola image yang sudah ada, seperti mengimpor atau menampilkan daftarnya.

Link skill

https://github.com/github/awesome-copilot/blob/main/skills/azure-container-registry-cli/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/github/awesome-copilot/blob/main/skills/azure-container-registry-cli/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBagaimana cara membuat container registry bernama 'my-registry' di resource group 'my-group'?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agen ini menggunakan perintah 'az acr' untuk berkomunikasi dengan Azure. Anda mengetik perintah seperti 'az acr create', lalu alat ini mengirimkannya ke Azure untuk melakukan tindakan tersebut.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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 local docker build + docker push: builds run in Azure, work without a local daemon, and integrate with triggers.
  • Prefer az acr import to 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, or Container Registry Repository Reader/Writer on 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

…

Pertanyaan umum

Apakah saya perlu menginstal sesuatu sebelumnya?

Ya, Anda perlu menginstal Azure CLI di komputer Anda dan sudah login ke akun Azure Anda.

Apa perbedaan antara 'build' dan 'import'?

'Build' membuat image container langsung di Azure. 'Import' menyalin image yang sudah ada di tempat lain ke registry Azure Anda.

Amankah menggunakan 'admin user'?

Tidak direkomendasikan untuk production. Sebaiknya gunakan identitas Microsoft Entra atau token dengan cakupan repositori (repository-scoped) untuk keamanan yang lebih baik.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
40k
Peringkat
#7079
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa