Skip to content

Commit aea8354

Browse files
authored
editorial changes
1 parent 4cd6ba6 commit aea8354

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

support/azure/azure-kubernetes/create-upgrade-delete/missing-or-invalid-service-principal.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: Missing or invalid service principal when creating an AKS cluster
33
description: Troubleshoot a missing or invalid service principal when you try to create an Azure Kubernetes Service (AKS) cluster.
4-
ms.date: 04/17/2025
5-
editor: v-jsitser,momajed
4+
ms.date: 04/30/2025
5+
editor: v-jsitser
66
ms.reviewer: chiragpa, nickoman, v-leedennis, momajed
77
ms.service: azure-kubernetes-service
88
keywords:
@@ -15,24 +15,23 @@ This article discusses how to troubleshoot a service principal that isn't found
1515

1616
## Prerequisites
1717

18-
<!-- Added: Note on Azure CLI version -->
19-
Ensure you are using Azure CLI version 2.0.81 or later to run the commands in this article.
18+
Use Azure CLI version 2.0.81 or later for running the commands in this article.
2019

2120
## Cause
2221

23-
When you create an AKS cluster, AKS requires a service principal or managed identity to manage resources on your behalf. By default, AKS uses a System-assigned managed identity. If you prefer to use a service principal instead, be aware that AKS does not automatically create one for you. Youll have to provide your own service principal and reference it during cluster creation by [these instructions](https://learn.microsoft.com/en-us/azure/aks/kubernetes-service-principal?tabs=azure-cli).
24-
<!-- Added: Recommendation for managed identities -->
25-
While service principals are supported for AKS authentication, consider using system-assigned managed identities, which simplify credential management and are the default for new clusters.
22+
When you create an AKS cluster, AKS requires a service principal or managed identity to manage resources on your behalf. By default, AKS uses a system-assigned managed identity. If you prefer to use a service principal instead, be aware that AKS does not automatically create one for you. You'll have to provide your own service principal and reference it during cluster creation. For more information, see [Use a service principal with Azure Kubernetes Service (AKS)](/azure/aks/kubernetes-service-principal?tabs=azure-cli).
23+
24+
Although service principals are supported for AKS authentication, we recommend using a system-assigned managed identity. This identity can simplify credential management and is the default option for new clusters.
2625

2726
Additionally, when you create a service principal, make sure that it's propagated across all regions by Microsoft Entra ID. If this propagation takes too long, the cluster might fail validation because AKS can't locate the service principal.
2827

2928
## Solution
3029

3130
Make sure that there's a valid, findable service principal. To do this, use one of the following methods:
3231

33-
- When you create an AKS cluster, consider using an existing service principal that has already propagated across regions. Although theres no direct way to verify the propagation status, you can verify functionality by using a previously deployed service principal. Alternatively, if you're using a new principal, allow 5-10 minutes for the principal to propagate before you start the cluster creation.
34-
<!-- Added: Command to verify service principal status -->
35-
- To confirm the service principal is ready, run `az ad sp show --id <appId>` and verify the output before creating the AKS cluster.
32+
- When you create an AKS cluster, consider using an existing service principal that has already propagated across regions. Although there's no direct way to verify the propagation status, you can verify functionality by using a previously deployed service principal. Alternatively, if you're using a new principal, allow 5-10 minutes for the principal to propagate before you start the cluster creation.
33+
34+
- To verify that the service principal is ready, execute the `az ad sp show --id <appId>` command and check the output before proceeding with the creation of the AKS cluster.
3635

3736
- If you use automation scripts, add time delays between service principal creation and AKS cluster creation. We recommend a delay of 5 to 10 minutes.
3837

0 commit comments

Comments
 (0)