17

I have just created an AKS cluster using a standard az aks create ... --ssh-key-value .... According to https://docs.microsoft.com/en-us/azure/aks/kubernetes-service-principal,

an AKS cluster is created, and because an existing service principal is not specified, a service principal is created for the cluster.

Where can I find the created SP? Thanks

JoaoCC
  • 305
  • 1
  • 3
  • 8

5 Answers5

22

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.

Jason Ye
  • 2,409
4

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.

Bruno Faria
  • 3,844
2

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

1

Try with this

az aks list --resource-group core-project --query="[0].servicePrincipalProfile.clientId"
nikoskip
  • 111
0

Refer this link for step by step guide for app registration in Azure AD - https://sanganakauthority.blogspot.com/2019/04/how-to-create-service-principal-or-app.html

kunal
  • 101