This procedure relies on the login as the App Registration, therefore you require the following information:
- Name of the App Registration
Tenant ID
of the App RegistrationClient ID
of the App RegistrationClient Secret
of the App Registration
- Login as the App Registration via Azure CLI
az login --service-principal --tenant "<TENANT_ID>" -u "<CLIENT_ID>" -p "<CLIENT_SECRET>"
- The following command will output the id of the Service Prinicpal of the App Registration. This can be used for example for RBAC assignments.
$ az ad sp list --display-name <App Registration Name> | jq '.[].id'
"d6cf843d-5527-4055-a52e-79a978c45e56"