Skip to content

Commit 3068907

Browse files
author
amsliu
committed
New article for CI 6963
1 parent b7f1ffc commit 3068907

2 files changed

Lines changed: 57 additions & 0 deletions

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
title: Troubleshoot the VirtualNetworkNotInSucceededState error code
3+
description: Learn how to troubleshoot the VirtualNetworkNotInSucceededState error code when you create, upgrade or scale an Azure Kubernetes Service (AKS) cluster or node pool.
4+
ms.date: 08/05/2025
5+
editor: v-jsitser
6+
ms.reviewer: v-liuamson
7+
ms.service: azure-kubernetes-service
8+
#Customer intent: As an Azure Kubernetes user, I want to troubleshoot the VirtualNetworkNotInSucceededState error code so that I can successfully create upgrade or scale an Azure Kubernetes Service (AKS) cluster or node pool.
9+
ms.custom: sap:Create, Upgrade, Scale and Delete operations (cluster or nodepool)
10+
---
11+
# Troubleshoot the VirtualNetworkNotInSucceededState error code
12+
13+
## Symptoms
14+
15+
When you create, upgrade or scale an Azure Kubernetes Service (AKS)
16+
cluster or node pool, the deployment fails with an error like the
17+
following:
18+
19+
*Status=400 Code=\"VirtualNetworkNotInSucceededState\"*
20+
21+
*Message=\"Set virtual network ownership failed. Subscription:
22+
\<SUBSCRIPTION\>; resource group: \<RESOURCE GROUP\>; virtual network
23+
name: \<VNET NAME\>. autorest/azure: Service returned an error.
24+
Status=400 Code=\"VirtualNetworkNotInSucceededState\" Message=\"Virtual
25+
network /subscriptions/\<SUBSCRIPTION\>/resourceGroups/\<RESOURCE
26+
GROUP\>/providers/Microsoft.Network/virtualNetworks/\<VNET\> is in
27+
Updating state. It needs to be in Succeeded state in order to set
28+
resource ownership.*
29+
30+
## Cause
31+
32+
AKS can set ownership on a virtual network only when the
33+
`provisioningState` of the VNet is **Succeeded**. The request fails if the
34+
VNet is in **Updating, Deleting or Failed**. Common reasons include:
35+
36+
- Another create, update, or delete operation is still running on the
37+
VNet.
38+
39+
- A previous network operation failed and left the VNet in the **Failed**
40+
state.
41+
42+
- Multiple parallel cluster or node‑pool deployments are trying to
43+
modify the same VNet at the same time.
44+
45+
## Resolution
46+
47+
Check the current provisioning state of the VNET:
48+
49+
*az network vnet show -g \<resource-group\> -n \<vnet-name\> \--query
50+
\"provisioningState\" -o tsv*
51+
52+
If the command returns **Succeeded**, retry your AKS operation. If it
53+
returns any other value. For more guidance, you may follow the troubleshooting steps described in [Troubleshoot Azure Microsoft.Network failed provisioning state](azure/networking/troubleshoot-failed-state).
54+
55+
[!INCLUDE [azure-help-support](../../../includes/azure-help-support.md)]

support/azure/azure-kubernetes/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,3 +455,5 @@
455455
href: error-codes/windows-cse-error-check-api-server-connectivity-error.md
456456
- name: ZonalAllocationFailed, AllocationFailed, or OverconstrainedAllocationRequest error
457457
href: error-codes/zonalallocation-allocationfailed-error.md
458+
- name: Troubleshoot the VirtualNetworkNotInSucceededState error code
459+
href: error-codes/virtualnetworknotinsucceededstate-error.md

0 commit comments

Comments
 (0)