-
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
{Profile} az login
: Update examples and history note
#30291
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -36,11 +36,11 @@ | |||||||||||||||||||||||||||||||||||||||||
- name: Log in interactively. | ||||||||||||||||||||||||||||||||||||||||||
text: az login | ||||||||||||||||||||||||||||||||||||||||||
- name: Log in with username and password. This doesn't work with Microsoft accounts or accounts that have two-factor authentication enabled. Use -p=secret if the first character of the password is '-'. | ||||||||||||||||||||||||||||||||||||||||||
text: az login -u johndoe@contoso.com -p VerySecret | ||||||||||||||||||||||||||||||||||||||||||
- name: Log in with a service principal using client secret. Use -p=secret if the first character of the password is '-'. | ||||||||||||||||||||||||||||||||||||||||||
text: az login --service-principal -u http://azure-cli-2016-08-05-14-31-15 -p VerySecret --tenant contoso.onmicrosoft.com | ||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since #18312, |
||||||||||||||||||||||||||||||||||||||||||
text: az login --username johndoe@contoso.com --password VerySecret | ||||||||||||||||||||||||||||||||||||||||||
- name: Log in with a service principal using client secret. Use --password=secret if the first character of the password is '-'. | ||||||||||||||||||||||||||||||||||||||||||
text: az login --service-principal --username APP_ID --password CLIENT_SECRET --tenant TENANT_ID | ||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||||||||||||||||||||||||||||||||||||||
- name: Log in with a service principal using certificate. | ||||||||||||||||||||||||||||||||||||||||||
text: az login --service-principal -u http://azure-cli-2016-08-05-14-31-15 --certificate ~/mycertfile.pem --tenant contoso.onmicrosoft.com | ||||||||||||||||||||||||||||||||||||||||||
text: az login --service-principal --username APP_ID --certificate /path/to/cert.pem --tenant TENANT_ID | ||||||||||||||||||||||||||||||||||||||||||
- name: Log in with a system-assigned managed identity. | ||||||||||||||||||||||||||||||||||||||||||
text: az login --identity | ||||||||||||||||||||||||||||||||||||||||||
- name: Log in with a user-assigned managed identity. You must specify the client ID, object ID or resource ID of the user-assigned managed identity with --username. | ||||||||||||||||||||||||||||||||||||||||||
|
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.
Changed to align with MicrosoftDocs/azure-docs-cli#4727.