You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/azure/azure-kubernetes/error-codes/subnetisdelegated-error.md
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,15 +14,15 @@ This article discusses how to identify and resolve the SubnetIsDelegated error t
14
14
15
15
## Prerequisites
16
16
17
-
Azure CLI (version 2.0.59 or a later version)
17
+
-Azure CLI (version 2.0.59 or a later version)
18
18
19
19
## Symptoms
20
20
21
21
When you try to create a node pool in an AKS cluster, you receive the following error message:
22
22
23
-
**Code:****SubnetIsDelegated**
24
-
25
-
**Message:**`AgentPoolProfile` subnet with id \<subnet-id\> cannot be used as it\'s a delegated subnet. Please check <https://aka.ms/adv-network-prerequest> for more details.
23
+
> **Code:****SubnetIsDelegated**
24
+
>
25
+
> **Message:**`AgentPoolProfile` subnet with id \<subnet-id\> cannot be used as it\'s a delegated subnet. Please check <https://aka.ms/adv-network-prerequest> for more details.
26
26
27
27
## Cause
28
28
@@ -34,18 +34,24 @@ To resolve this issue, follow these steps:
34
34
35
35
1. Verify that the subnet is correctly delegated:
36
36
37
+
```
37
38
az network vnet subnet show \\ \--resource-group \$RESOURCE_GROUP \--vnet-name \$VNET_NAME \--name \$SUBNET_NAME \--query delegations
39
+
```
38
40
39
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:
40
42
43
+
```
41
44
az network vnet subnet update \--resource-group \$RESOURCE_GROUP
0 commit comments