Skip to content

Commit 8672674

Browse files
author
amsliu
committed
minor update based on edit review feedback
1 parent 3ee7c77 commit 8672674

1 file changed

Lines changed: 25 additions & 16 deletions

File tree

support/azure/azure-kubernetes/error-codes/subnetisdelegated-error.md

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
title: Troubleshoot the SubnetIsDelegated Error
2+
title: Troubleshoot the SubnetIsDelegated Error Code
33
description: Learn how to troubleshoot the SubnetIsDelegated error when you try to create a node pool.
4-
ms.date: 08/05/2025
4+
ms.date: 08/07/2025
55
editor: v-jsitser
66
ms.reviewer: v-liuamson
77
ms.service: azure-kubernetes-service
88
#Customer intent: As an Azure Kubernetes user, I want to troubleshoot the SubnetIsDelegated error so that I can successfully create a node pool.
9-
ms.custom: sap:Create, Upgrade, Scale and Delete operations (cluster or )
9+
ms.custom: sap:Create, Upgrade, Scale and Delete operations (cluster or nodepool)
1010
---
1111
# Troubleshoot the "SubnetIsDelegated" error
1212

@@ -34,23 +34,32 @@ To resolve this issue, follow these steps:
3434

3535
1. Verify that the subnet is correctly delegated:
3636

37+
```bash
38+
az network vnet subnet show \
39+
--resource-group $RESOURCE_GROUP \
40+
--vnet-name $VNET_NAME \
41+
--name $SUBNET_NAME \
42+
--query delegations
43+
```
44+
45+
1. Make sure that the output shows **Microsoft.ContainerService/managedClusters** as the delegated service or no delegated service. If the output shows any other Azure service delegation, remove it by running the following command:
46+
47+
```bash
48+
az network vnet subnet update \
49+
--resource-group $RESOURCE_GROUP \
50+
--vnet-name $VNET_NAME \
51+
--name $SUBNET_NAME \
52+
--remove delegations 0
3753
```
38-
az network vnet subnet show \\ \--resource-group \$RESOURCE_GROUP \--vnet-name \$VNET_NAME \--name \$SUBNET_NAME \--query delegations
39-
```
40-
41-
1. Make sure that the output shows **Microsoft.ContainerService/managedClusters** as the delegated service or no delegated service. If the output shows any Azure service delegation, you have to remove it by running the following command:
4254

43-
```
44-
az network vnet subnet update \--resource-group \$RESOURCE_GROUP
45-
\--vnet-name \$VNET_NAME \--name \$SUBNET_NAME \--remove delegations 0
46-
```
47-
4855
1. Run the following command to add Managed Cluster delegation:
4956

50-
```
51-
az network vnet subnet update \--resource-group \$RESOURCE_GROUP
52-
\--vnet-name \$VNET_NAME \--name \$SUBNET_NAME \--delegations
53-
Microsoft.ContainerService/managedClusters
57+
```bash
58+
az network vnet subnet update \
59+
--resource-group $RESOURCE_GROUP \
60+
--vnet-name $VNET_NAME \
61+
--name $SUBNET_NAME \
62+
--delegations Microsoft.ContainerService/managedClusters
5463
```
5564

5665
1. After the subnet delegation is removed, try again to create the node pool by using the `az aks nodepool add` command.

0 commit comments

Comments
 (0)