[ACR] az acr replication create/update: Remove --region-endpoint-enabled flag#33173
[ACR] az acr replication create/update: Remove --region-endpoint-enabled flag#33173
Conversation
|
Validation for Azure CLI Full Test Starting...
Thanks for your contribution! |
|
Validation for Breaking Change Starting...
Thanks for your contribution! |
|
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
Removes the deprecated --region-endpoint-enabled flag from az acr replication create/update, completing the rename to the clearer --global-endpoint-routing option in the ACR command module.
Changes:
- Update ACR replication create/update implementation to only accept
global_endpoint_routingand map it to the SDK’sregion_endpoint_enabledproperty. - Remove the
region_endpoint_enabledCLI argument definition and its associated linter exclusions. - Update ACR replication scenario tests to use
--global-endpoint-routing.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_commands.py |
Updates scenario tests to use --global-endpoint-routing instead of the removed flag. |
src/azure-cli/azure/cli/command_modules/acr/replication.py |
Removes deprecated parameter plumbing and uses global_endpoint_routing to set region_endpoint_enabled. |
src/azure-cli/azure/cli/command_modules/acr/_params.py |
Removes the region_endpoint_enabled argument and keeps global_endpoint_routing as the sole flag. |
linter_exclusions.yml |
Removes linter exclusions for the deleted parameter. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Related command
az acr replication createaz acr replication updateDescription
This is the follow-up PR to #32954 which introduced --global-endpoint-routing and deprecated --region-endpoint-enabled.
This PR completes the breaking change by removing the deprecated
--region-endpoint-enabledflag.Testing Guide

History Notes
[ACR] BREAKING CHANGE: az acr replication create/update: Remove deprecated --region-endpoint-enabled flag. Use --global-endpoint-routing instead.
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.