azure-containerregistry-py

Manage Azure Container Registry images, tags, and manifests via the Python SDK.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/davidrrowley/CortexYouV3 --skill azure-containerregistry-py-davidrrowley
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-containerregistry-py
Source: https://github.com/davidrrowley/CortexYouV3/tree/main/.agents/skills/azure-containerregistry-py
Command: npx skills add https://github.com/davidrrowley/CortexYouV3 --skill azure-containerregistry-py-davidrrowley

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Programmatic management of container images, manifests, tags, and repositories in Azure Container Registry so engineers can automate maintenance, CI/CD integrations, and cleanup tasks without relying on manual Docker CLI operations.

Core Features & Use Cases

  • Repository and Tag Discovery: List repositories and tag properties to inventory images across a registry.
  • Manifest and Artifact Management: Inspect, download, update, and delete manifests and blobs with streaming support.
  • Safe Cleanup & Locking: Identify and remove untagged or old manifests safely by digest and lock production images using can_delete/can_write flags.
  • Sync and Async Support: Use both synchronous and asynchronous ContainerRegistryClient patterns for different throughput needs.
  • Use Case: Integrate into CI/CD pipelines to automatically scan registries, lock production images, and purge untagged manifests older than a retention cutoff.

Quick Start

Use the azure-containerregistry-py skill to list repositories, inspect tags, and remove untagged manifests older than 30 days from your AZURE_CONTAINERREGISTRY_ENDPOINT.

Frequently Asked Questions about azure-containerregistry-py

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

FAQPage Schema
How do I automate deleting untagged container images in Azure Container Registry?

To automate deleting untagged container images in Azure Container Registry, use the Python SDK to safely delete manifests by digest while checking manifest tags. This enables automated cleanup tasks without manual Docker CLI operations.

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

List repositories and tags in Azure Container Registry using Python by leveraging the ContainerRegistryClient for repository and tag discovery. This scripts image inventorying across an ACR registry to audit container images programmatically.

Can I use async operations with the Azure Container Registry Python SDK?

Yes, you can use asynchronous operations with the Azure Container Registry Python SDK. It supports both synchronous and asynchronous ContainerRegistryClient patterns to handle different throughput needs for manifest inspection and artifact download tasks.

What is the best way to lock production images in an Azure Container Registry CI/CD pipeline?

The best way to lock production images in an Azure Container Registry CI/CD pipeline is using the Python SDK to manage can_delete and can_write flags. This prevents modifications to critical artifacts during automated registry scans.

Do I need DefaultAzureCredential to authenticate to Azure Container Registry with Python?

Yes, you need DefaultAzureCredential to authenticate to Azure Container Registry with Python. It enables secure access for the ContainerRegistryClient to list repositories, inspect manifests, and stream blob downloads across ACR registries.

Does the Azure Container Registry Python SDK support streaming blob downloads?

Yes, the Azure Container Registry Python SDK supports streaming blob downloads for artifact management. This allows you to inspect, download, and update manifests and blobs efficiently during automated maintenance workflows.