-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Profile] az login
: Add --subscription
#31976
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
️✔️AzureCLI-FullTest
|
Hi @jiasli, |
|
rule | cmd_name | rule_message | suggest_message |
---|---|---|---|
login | cmd login added parameter subscription |
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>
|
Related command
az login
Description
Partially resolve #14933
This PR adds
--subscription
argument to bypass the interactive subscription selector (#28910).This PR cannot solve #31939 because
--subscription
merely selects the default subscription. Subscriptions - List API is still called to list all subscriptions. If we replace Subscriptions - List with a Subscriptions - Get API call, cross-tenant authentication will break as Azure CLI has no information of the auxiliary subscription.Testing Guide
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 featureThis 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.