Skip to content

Commit 97f79c9

Browse files
authored
{Profile} az login: Update examples and history note (#30291)
1 parent 1d0fd3f commit 97f79c9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/azure-cli/HISTORY.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Release History
7676

7777
**Profile**
7878

79-
* `az login`: Passing the service principal certificate with `--password` is deprecated and will be removed by version 2.74. Please use `--certificate` instead. (#30091)
79+
* `az login`: Passing the service principal certificate with `--password` is deprecated and will be removed in version 2.67.0. Please use `--certificate` instead. (#30091)
8080

8181
**RDBMS**
8282

src/azure-cli/azure/cli/command_modules/profile/_help.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
- name: Log in interactively.
3737
text: az login
3838
- 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 '-'.
39-
text: az login -u [email protected] -p VerySecret
40-
- name: Log in with a service principal using client secret. Use -p=secret if the first character of the password is '-'.
41-
text: az login --service-principal -u http://azure-cli-2016-08-05-14-31-15 -p VerySecret --tenant contoso.onmicrosoft.com
39+
text: az login --username [email protected] --password VerySecret
40+
- name: Log in with a service principal using client secret. Use --password=secret if the first character of the password is '-'.
41+
text: az login --service-principal --username APP_ID --password CLIENT_SECRET --tenant TENANT_ID
4242
- name: Log in with a service principal using certificate.
43-
text: az login --service-principal -u http://azure-cli-2016-08-05-14-31-15 --certificate ~/mycertfile.pem --tenant contoso.onmicrosoft.com
43+
text: az login --service-principal --username APP_ID --certificate /path/to/cert.pem --tenant TENANT_ID
4444
- name: Log in with a system-assigned managed identity.
4545
text: az login --identity
4646
- 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.

0 commit comments

Comments
 (0)