-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Role] az ad sp create-for-rbac
: Add alias --json-auth
for --sdk-auth
#26572
Conversation
️✔️AzureCLI-FullTest
|
|
is_break | cmd_name | rule_message | suggest_message |
---|---|---|---|
ad sp create-for-rbac | cmd ad sp create-for-rbac update parameter show_auth_for_sdk : updated property name from show_auth_for_sdk to show_auth_in_json |
||
ad sp create-for-rbac | cmd ad sp create-for-rbac update parameter show_auth_for_sdk : updated property options from ['--sdk-auth'] to ['--json-auth', '--sdk-auth'] |
Role |
az ad sp create-for-rbac
: Add alias --json-auth
for --sdk-auth
az ad sp create-for-rbac
: Add alias --json-auth
for --sdk-auth
c.argument('show_auth_in_json', options_list=['--sdk-auth', '--json-auth'], | ||
deprecate_info=c.deprecate(target='--sdk-auth'), | ||
help='Output service principal credential along with cloud endpoints in JSON format. ' | ||
'See https://learn.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't include /en-us
in URLs in case this article supports multi-language in the future.
help='Output service principal credential along with cloud endpoints in JSON format. ' | ||
'See https://learn.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a second thought, I think it may not be a good idea to include this URL. People who don't know what --sdk-auth
does most likely don't need to use it as well. 🤣
If we do include the URL, please submit a PR to https://github.com/MicrosoftDocs/azure-docs-cli repo and link the PR ID here.
Or, maybe we should link to https://learn.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli at command level for better discovery.
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
…-auth` (Azure#26572) * Add alias `--json-auth` for `--sdk-auth` of `az ad sp create-for-rbac` * update help information * remove the url
Related command
az ad sp create-for-rbac
Description
This PR is going to add alias
--json-auth
for the parameter--sdk-auth
of the commandaz ad sp create-for-rbac
.As mentioned in #19872,
--sdk-auth
was deprecated since Python SDK has deprecated the usage of the output JSON file, there are still other places where this JSON file is used, like GitHub Action. To avoid confusion in naming, we introduce the alias--json-auth
for--sdk-auth
.Some documents should be updated synchronously.
Close Azure/login#314
Testing Guide
az ad sp create-for-rbac --json-auth
: with no deprecation messageaz ad sp create-for-rbac --sdk-auth
: still shows deprecation messageHistory Notes
az ad sp create-for-rbac
: Add alias--json-auth
for--sdk-auth
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.