aks create with service principal gives "ERROR: Directory permission is needed for the current user to register the application"
I'm trying to create an AKS resource with a service principal with the contributor role.
Users are allowed to create app registrations in the subscription, so i dont know what other permissions that needs to be granted to the service principal? And how those permissions should be added to the service principal?

Commands used are: az login --service-principal -u serviceUser -p servicePassword --tenant mytenant az aks create -g resourceGroupName --name k8name --location westeurope --generate-ssh-keys --no-wait
Error message from aks create: ERROR: Directory permission is needed for the current user to register the application. For how to configure, please refer 'https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-create-service-principal-portal'. Original error: Insufficient privileges to complete the operation.
How did you create the service principal? Is it scoped to a resource group or subscription?
Having the exact same issue, the SP I created is scoped to the subscription
:+1:
Closing this issue as old/stale/resolved.
Note: If this issue still comes up, please confirm you are running the latest AKS release. If you are on the latest release and the issue can be re-created outside of your specific cluster please open a new github issue.
If you are only seeing this behavior on clusters with a unique configuration (such as custom DNS/VNet/etc) please open an Azure technical support ticket.