Managed identity¶
Service principal¶
not recommended: https://learn.microsoft.com/en-us/azure/aks/kubernetes-service-principal?tabs=azure-cli
managed identity¶
https://learn.microsoft.com/en-us/azure/aks/use-managed-identity
Check type of managed identity the cluster is used:
If the cluster is using a managed identity, the value of the type property will be either
SystemAssignedorUserAssigned.If the cluster is using a service principal, the value of the type property will be
null.
Get the identity resource id: