Azure CLI Flashcards

1
Q

How do you show your current username and subscription?

A

az account show

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you create a service principal with a contributor role?

A

az ad sp create-for-rbac –role=”Contributor” –scopes=”/subscriptions/” -n “martin.sabo-sp-terraform”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you delete a service principal?

A

az ad sp delete –id

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to login under a service principal account?

A

az login –service-principal -u -p “” –tenant “”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly