Thanks to visit codestin.com
Credit goes to officialskills.sh

Back to skills

azure-containerregistry-py

Python SDK for Azure Container Registry.

Setup & Installation

npx skills add https://github.com/microsoft/skills --skill azure-containerregistry-py
or paste the link and ask your coding assistant to install it
https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-python/skills/azure-containerregistry-py
View on GitHub

What This Skill Does

Python SDK for Azure Container Registry. Manages container images, repositories, tags, and manifests through the ContainerRegistryClient API. Supports both Entra ID and anonymous authentication.

Automating image cleanup and manifest locking through Python scripts removes the need for manual Azure Portal clicks or error-prone CLI one-liners across multiple repositories.

When to use it

  • Listing all repositories and their manifest counts in an ACR instance
  • Deleting untagged manifests older than 30 days to reduce storage costs
  • Locking production images by setting can_delete=False on specific tags
  • Downloading blob layers from a registry for local inspection or migration
  • Querying tag history ordered by last update to audit recent pushes