Azure CLI Flashcards
1
Q
How do you show your current username and subscription?
A
az account show
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”
3
Q
How do you delete a service principal?
A
az ad sp delete –id
4
Q
How to login under a service principal account?
A
az login –service-principal -u -p “” –tenant “”