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.mdSalin 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
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
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 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 |
β¦
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
Komentar
- β¦
Skill lain dari repositori ini
acquire-codebase-knowledge
40kMembantu agent Anda memahami dan mendokumentasikan proyek kode yang sudah ada. Berguna untuk proses onboarding anggota baru atau mendapatkan gambaran arsitektur.
acreadiness-assess
40kMemungkinkan agent Anda menilai kesiapan proyek untuk AI dan membuat laporannya. Berguna untuk mengetahui seberapa siap proyek menggunakan alat AI.
acreadiness-generate-instructions
40kMembantu agent Anda membuat instruksi untuk alat AI berdasarkan hasil penilaian. Berguna untuk meningkatkan cara AI berinteraksi dengan kode dan menutup celah yang ditemukan.
acreadiness-policy
40kMemungkinkan agent Anda membantu menyusun atau menerapkan kebijakan untuk penilaian proyek AI. Berguna untuk menstandarisasi evaluasi proyek dan memastikan kepatuhan.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.