Azure

 

 

Get service principal details

 

We need service principal details to provision the resources to azure. We can use following script to generate

 

az account set --subscription="subscription_id"

 

az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/subscription_id"

 

we will get output in following format

 

{ "appId": "XXXXXXXXXXXXX", "displayName": "azure-cli-2021-10-01-15-08-58", "name": "XXXXXXXXXXXXX", "password": "XXXXXXXXXXXXX", "tenant": "XXXXXXXXXXXXX" }