Using Console
Using CLI
az login
.
az account show --query "isIdentityCrmEnabled"
. If the output is false
, it means Managed Service Identity is disabled for your subscription.
az provider register --namespace Microsoft.ManagedIdentity
.
az identity create --name <identity-name> --resource-group <resource-group-name>
.
az role assignment create --role <role-name> --assignee <identity-client-id> --scope <resource-id>
.
<identity-name>
, <resource-group-name>
, <role-name>
, <identity-client-id>
and <resource-id>
with the actual values for your Azure environment.
az identity show --name <identity-name> --resource-group <resource-group-name>
.
Using Python