Registry / azure / azure-cli-acr

azure-cli-acr

JSON →
library2.2.9pypypiunverified

Microsoft Azure Command-Line Tools ACR Command Module. Manages Azure Container Registry resources including registries, repositories, tasks, and tokens. Part of the Azure CLI. Version 2.2.9. Release cadence tied to Azure CLI releases (approximately monthly).

pip install azure-cli-acr
INSTALL
IMPORT
SIG · AZURE-CLI-ACR
A
azure-cli-acr
azurepythonv2.2.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

acr_commands
from azure.cli.command_modules.acr.custom import acr_commands
from azure.cli.command_modules.acr import acr_commands

List all Azure Container Registries using the Azure CLI ACR module.

import os from azure.cli.core import get_default_cli cli = get_default_cli() exit_code = cli.invoke(['acr', 'list', '--output', 'json']) if exit_code != 0: print('List failed') else: import json registries = json.loads(cli.result.result) print(json.dumps(registries, indent=2))
az --version
Debug
Known issues
breakingThe `az acr build` command with legacy parameters (e.g., `--dockerfile`) was refactored. Use `az acr task run` instead.
fix
Use `az acr task create` and `az acr task run` to execute builds.
affects: >=2.0.0
deprecatedThe `--resource-group` parameter is being phased out in favor of `--resource-group`. Actually, `--resource-group` is required for most ACR commands but its omission is a common source of errors.
fix
Always specify `--resource-group <name>` unless the command documentation explicitly says it's optional.
affects: *
gotchaWhen using `az acr import`, the source image must be in the format `registry.azurecr.io/repo:tag`. Omitting the full qualified name results in a `RegistryNotFound` error.
fix
Use `az acr import --source <registry>.azurecr.io/<repo>:<tag>`.
affects: *
Upgrade
Version history
2.2.9latest on PyPI · released Jun 18, 2019
Audit
Dependencies
azure-cli-corerequiredRequired for Azure CLI command infrastructure.
azure-mgmt-containerregistryrequiredProvides the ACR management client.
azure-storage-bloboptionalUsed for export/import operations.
Agent activity
47 hits · last 30 days
node
34
OpenAI (training)
1
Resources
azure-cli-acr — pip install azure-cli-acr · libregistry