Creating the Service Principal ID for Kubernetes

Required permissions: create service principal

To create the service principal ID:

  1. In the Azure Cloud Shell, run the command:

    az ad sp create-for-rbac -n "PRINCIPAL ID NAME" --skip-assignment

For example:
az ad sp create-for-rbac -n srgdemo-service-principal --skip-assignment

Example results:

{
   "appId":"52f25b66-2700-474d-a2a0-016f0b149e22",
   "displayName":"srgdemo-service-principal",
   "name":"http://srgdemo-service-principal",
   "password":"bf47aa85-9578-4d61-a8e9-ffafe5a1e22b",
   "tenant":"6002e264-31f7-43d3-a51e-9ed1ba9ca689"
}

Note the values for password and appID. These values will be used in the next step.

Next Step: Prepare the Virtual Network and AKS Subnet