azure-containerregistry-py

Manage Azure Container Registry repositories, tags, and manifests from Python.

2.9k|323|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/microsoft/skills --skill azure-containerregistry-py-microsoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-containerregistry-py
Source: https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-python/skills/azure-containerregistry-py
Command: npx skills add https://github.com/microsoft/skills --skill azure-containerregistry-py-microsoft

SYSTEM DOCUMENTATION & REQUIREMENTS

Azure Container Registry SDK for Python enables developers to manage container images, artifacts, and repositories in Azure Container Registry from Python code.

It provides programmatic access to repositories, tags, and manifests, with support for both synchronous and asynchronous operations and flexible authentication via Azure Identity.

What problem does it solve?

Managing container registry resources can be tedious and error-prone when done manually through multiple API calls or UI consoles. This SDK abstracts common operations and provides a consistent Pythonic interface to work with Azure Container Registry.

Core Features & Use Cases

  • List repositories, tags, and manifests in a registry to inventory and monitor your images.
  • Get and update repository or manifest properties, delete outdated artifacts, and perform cleanup tasks.
  • Use both sync and async clients with DefaultAzureCredential or anonymous access for flexible integration in applications.

Quick Start

Install the azure-containerregistry package and create a ContainerRegistryClient to list repositories.

Frequently Asked Questions about azure-containerregistry-py

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I list repositories and tags in Azure Container Registry using Python?

Delete artifacts and clean up outdated tags in Azure Container Registry by using the Python SDK's delete methods on repositories, tags, and manifests. This automates cleanup tasks that would otherwise require manual API calls or UI console interactions.

Can I use async operations to manage Azure Container Registry from Python?

Azure Container Registry authentication in Python uses DefaultAzureCredential from Azure Identity or anonymous access. The SDK supports both methods, enabling flexible integration depending on your application's security requirements and access scope.

Does the Azure Container Registry Python SDK support anonymous access?

Container manifests can be queried and updated in Azure Container Registry using the Python SDK's get and update methods for manifest properties. This allows programmatic control over artifact metadata and properties within the registry.

What's the best way to automate container registry cleanup in Python?

Automating container registry cleanup in Python is best done using the Azure Container Registry SDK to programmatically delete outdated artifacts, tags, and manifests. This abstracts manual API calls and provides a consistent interface for maintenance tasks.