How to find the service principal assigned to a newly created AKS cluster?

Solution 1:

As Bruno Faria said, you can find the service principal in Azure Active Directory, Azure Active Directory -> App registrations -> All apps like this:

enter image description here

Also you can use az aks list --resource-group <your-resouece-group> to find your service principal:

enter image description here

Hope this helps.

Solution 2:

Go to Azure Active Directory >> App Registrations >> Select All Apps from the dropdown menu >> find your app and click on it.

The service principal will be the application Id and the secret will be the key under settings.

Solution 3:

The output from "az aks list" should contain your service principal clientId.