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/azure/cli/command_modules/profile/_help.py
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,10 @@
21
21
For more details, see https://go.microsoft.com/fwlink/?linkid=2276314
22
22
23
23
24
+
[WARNING] Passing the service principal certificate with `--password` is deprecated and will be removed
25
+
by version 2.74. Please use `--certificate` instead.
26
+
27
+
24
28
To log in with a service principal, specify --service-principal.
25
29
26
30
@@ -35,8 +39,8 @@
35
39
text: az login -u johndoe@contoso.com -p VerySecret
36
40
- name: Log in with a service principal using client secret. Use -p=secret if the first character of the password is '-'.
37
41
text: az login --service-principal -u http://azure-cli-2016-08-05-14-31-15 -p VerySecret --tenant contoso.onmicrosoft.com
38
-
- name: Log in with a service principal using client certificate.
39
-
text: az login --service-principal -u http://azure-cli-2016-08-05-14-31-15 -p ~/mycertfile.pem --tenant contoso.onmicrosoft.com
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
40
44
- name: Log in with a system-assigned managed identity.
41
45
text: az login --identity
42
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