az ad sp create-for-rbac --name <service principal name>
az ad sp create-for-rbac --skip-assignment --name <service principal name>
az login
az account set --subscription="${SUBSCRIPTION_ID}"
az ad sp create-for-rbac -n "<<service-principal-name>>" --role="Contributor" --scopes="/subscriptions/${SUBSCRIPTION_ID}"
az login
az account set --subscription="${SUBSCRIPTION_ID}"
az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/${SUBSCRIPTION_ID}/resourceGroups/${RESOURCE_GROUP_NAME}"
az ad sp list --filter "displayName eq '<<service-principal-name>>'" --query "[].{clientId:appId, tenant:appOwnerTenantId, objectId:objectId, password:password }"
az ad sp credential reset --name "<<service-principal-name>>"