mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
az-login: add page (#6228)
Co-authored-by: Axel Navarro <navarroaxel@gmail.com> Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com> Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com> Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
This commit is contained in:
parent
0e1a6e39f2
commit
acb6e1c412
1 changed files with 25 additions and 0 deletions
25
pages/common/az-login.md
Normal file
25
pages/common/az-login.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# az login
|
||||
|
||||
> Log in to Azure.
|
||||
> Part of `az`, the command-line client for Microsoft Azure.
|
||||
> More information: <https://docs.microsoft.com/cli/azure/reference-index#az_login>.
|
||||
|
||||
- Log in interactively:
|
||||
|
||||
`az login`
|
||||
|
||||
- Log in with a service principal using a client secret:
|
||||
|
||||
`az login --service-principal --username {{http://azure-cli-service-principal}} --passsword {{secret}} --tenant {{someone.onmicrosoft.com}}`
|
||||
|
||||
- Log in with a service principal using a client certificate:
|
||||
|
||||
`az login --service-principal --username {{http://azure-cli-service-principal}} --password {{path/to/cert.pem}} --tenant {{someone.onmicrosoft.com}}`
|
||||
|
||||
- Log in using a VM's system assigned identity:
|
||||
|
||||
`az login --identity`
|
||||
|
||||
- Log in using a VM's user assigned identity:
|
||||
|
||||
`az login --identity --username /subscriptions/{{subscription_id}}/resourcegroups/{{my_rg}}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{{my_id}}`
|
Loading…
Add table
Reference in a new issue