My AKS cluster is giving the errow below;
It's related with expired service principal. So I followed the instructions here --> https://learn.microsoft.com/en-us/azure/aks/update-credentials#update-aks-cluster-with-service-principal-credentials
I created a new SP with the command below;
az ad sp create-for-rbac --role Contributor --scopes /subscriptions/mySubscriptionID
And after that I'm trying to attach this SP with the AKS and executing the command below;
az aks update-credentials --resource-group myrg --name myaks --reset-service-principal --service-principal xxx-8xx7-xxx-xx2-xxxxxxxx6 --client-secret "xxxxxxxxsu5Nxxxxxx"
But it gives the error below;
(BadRequest) Updating service principal profile is not allowed on cluster using managed identity.
Code: BadRequest
Message: Updating service principal profile is not allowed on cluster using managed identity.
And the thing is we are not using managed identity. Or not sure how to check if we are using somehow?
Any idea what is the problem?