[ACR] add new acrregionalendpoint extension for private preview of ACR Regional Endpoints feature#9500
[ACR] add new acrregionalendpoint extension for private preview of ACR Regional Endpoints feature#9500lizMSFT wants to merge 10 commits intoAzure:mainfrom
Conversation
…R Regional Endpoints feature
|
Validation for Breaking Change Starting...
Thanks for your contribution! |
|
Hi @lizMSFT, |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
|
There was a problem hiding this comment.
Pull request overview
This pull request adds a new Azure CLI extension called "acrregionalendpoint" for the private preview of the ACR Regional Endpoints feature. The extension provides management capabilities for Azure Container Registry regional endpoints.
Key changes:
- New extension scaffolding with version 1.0.0
- Vendored Azure Container Registry Management SDK
- Support for API version 2025-12-01-preview
Reviewed changes
Copilot reviewed 38 out of 43 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| setup.py | Extension metadata, dependencies, and packaging configuration |
| azext_metadata.json | Extension configuration marking it as preview with minimum CLI version 2.80.0 |
| vendored_sdks/containerregistry/ | Auto-generated Container Registry Management SDK code |
| _configuration.py (sync/async) | SDK configuration with API version 2025-12-01-preview |
| models/ | Auto-generated model classes and enums for the SDK |
| operations/ | Auto-generated operation classes for SDK functionality |
| tests/ | Test structure setup (placeholder files) |
| @@ -0,0 +1,401 @@ | |||
| # -------------------------------------------------------------------------------------------- | |||
There was a problem hiding this comment.
| @@ -0,0 +1,184 @@ | |||
| # -------------------------------------------------------------------------------------------- | |||
There was a problem hiding this comment.
...regionalendpoint/azext_acrregionalendpoint/vendored_sdks/containerregistry/_configuration.py
Show resolved
Hide resolved
...onalendpoint/azext_acrregionalendpoint/vendored_sdks/containerregistry/aio/_configuration.py
Show resolved
Hide resolved
src/acrregionalendpoint/azext_acrregionalendpoint/tests/latest/recordings/test_acr_login.yaml
Outdated
Show resolved
Hide resolved
...egionalendpoint/tests/latest/recordings/test_acr_create_with_regional_endpoint_disabled.yaml
Outdated
Show resolved
Hide resolved
...regionalendpoint/tests/latest/recordings/test_acr_create_with_regional_endpoint_enabled.yaml
Outdated
Show resolved
Hide resolved
...egionalendpoint/azext_acrregionalendpoint/tests/latest/test_acr_regionalendpoint_scenario.py
Show resolved
Hide resolved
|
|
||
| return info | ||
|
|
||
|
|
There was a problem hiding this comment.
Copied the functions below from azure.cli.command_modules.acr.custom due to potential upcoming changes on the CLI side.
More details in: Azure/azure-sdk-for-python#44775 (comment)
This checklist is used to make sure that common guidelines for a pull request are followed.
Related command
az acr create/update/showaz acr show-endpointsaz acr loginaz acr importDescription
This PR is NOT READY yet. Still waiting for the finalization of the rest api specs for 2026-01-01-preview.
Changes Introduced:
--regional-endpointsparameter toaz acr createandaz acr updatecommands to enable regional endpoint functionality.--endpointparameter toaz acr logincommand to authenticate against a specific regional endpoint.az acr showcommand to displayregionalEndpointsandregionalEndpointHostNamesproperties in registry information.az acr show-endpointscommand to display comprehensive endpoint information including registry login server, data endpoints, and regional endpoints.az acr importcommand to automatically detect and handle regional endpoint URIs in source image specifications.Testing
az acr create:az acr update:az acr show:az acr show-endpoints:az acr login:az acr import:General Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally? (pip install wheel==0.30.0required)For new extensions:
About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update
src/index.jsonautomatically.You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify
src/index.json.