[ACR] az acr create: Fix logs for domain name label#31423
[ACR] az acr create: Fix logs for domain name label#31423zhoxing-ms merged 9 commits intoAzure:devfrom
az acr create: Fix logs for domain name label#31423Conversation
️✔️AzureCLI-FullTest
|
|
Hi @trisavo-msft, |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
️✔️AzureCLI-BreakingChangeTest
|
|
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>
|
az acr create: Consolidate logs for domain name label scopeaz acr create: Fix logs for domain name label, refactor valiate_registry_name
| raise | ||
| login_server = '{}{}{}'.format( | ||
| registry_name, '-{}'.format(tenant_suffix) if tenant_suffix else '', login_server_suffix).lower() | ||
| login_server = '{}{}{}{}'.format( |
There was a problem hiding this comment.
login_server should always be fetched from the registry.login_server parameter. Let us not try to construct it. We can raise an exception and not proceed further if login_server is None
| cli_ctx = cmd.cli_ctx | ||
| resource_not_found, registry = None, None | ||
| try: | ||
| if cli_ctx is None or registry_name is None: |
There was a problem hiding this comment.
It should be registry_name. However we can remove this code. See comment below. We should not try to recreate login_server from the dnl hash and suffix. Just raise an exception
This reverts commit 429a153.
az acr create: Fix logs for domain name label, refactor valiate_registry_nameaz acr create: Fix logs for domain name label
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Related command
Description
Modify logs for customers using az login domain name label
Testing Guide
Tested locally using venv

History Notes
[Component Name 1] BREAKING CHANGE:
az command a: Make some customer-facing breaking change[Component Name 2]
az command b: Add some customer-facing featureaz acr login: Modify logs for domain name label on az loginThis 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.