You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/azure-cli/HISTORY.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ Release History
76
76
77
77
**Profile**
78
78
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)
Copy file name to clipboardExpand all lines: src/azure-cli/azure/cli/command_modules/profile/_help.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -36,11 +36,11 @@
36
36
- name: Log in interactively.
37
37
text: az login
38
38
- 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 '-'.
- 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
42
42
- 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
44
44
- name: Log in with a system-assigned managed identity.
45
45
text: az login --identity
46
46
- 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