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/create-upgrade-delete/nodepools-not-upgraded-to-gen2-during-node-image-upgrade.md
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,14 @@
1
1
---
2
2
title: Windows nodepools not upgraded to Gen2 during cluster node image upgrade
3
3
description: Troubleshoot why Windows Server nodepools don't get upgraded automatically from Gen1 to Gen2 when a cluster node image is upgraded in Azure Kubernetes Service.
#Customer intent: As an Azure Kubernetes Services (AKS) user, I want to troubleshoot why Windows Server nodepools don't get upgraded automatically from Gen1 to Gen2 virtual machines (VMs) when a cluster node image is upgraded in Azure Kubernetes Service (AKS).
9
9
ms.custom: sap:Create, Upgrade, Scale and Delete operations (cluster or nodepool)
10
10
---
11
+
11
12
# Windows Server nodepools not upgraded to Gen2 during cluster node image upgrade
12
13
13
14
This article discusses how to troubleshoot a scenario in which Windows Server nodepools don't get upgraded automatically from Gen1 to Gen2 virtual machines (VMs) when a cluster node image is upgraded in Microsoft Azure Kubernetes Service (AKS).
@@ -17,7 +18,8 @@ This article discusses how to troubleshoot a scenario in which Windows Server no
17
18
18
19
## Prerequisites
19
20
20
-
-[Azure CLI](/cli/azure/install-azure-cli)
21
+
<!-- Updated: Specify Azure CLI version -->
22
+
- Azure CLI version 2.0.81 or later. See [Install Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli) for installation instructions.
21
23
22
24
## Symptoms
23
25
@@ -51,11 +53,13 @@ When you upgrade the default OS from Windows Server 2019 (`Windows2019`) to Wind
51
53
52
54
Upgrade the cluster, and then create a new Windows Server nodepool that supports [Gen2 VM sizes](/azure/virtual-machines/generation-2) on that cluster according to the following guidelines.
53
55
56
+
54
57
| Kubernetes cluster upgrade version | Cluster creation guidelines |
55
58
|---|---|
56
59
| 1.25 or a later version | When you run the [az aks create](/cli/azure/aks#az-aks-create) command to create a cluster, set the `--node-vm-size` parameter to a [Gen2 VM size](/azure/virtual-machines/generation-2). |
57
60
| Earlier version than 1.25 | When you run the [az aks create](/cli/azure/aks#az-aks-create) command to create a cluster, set the `--os-sku` parameter value to `Windows2022`, and set the `--node-vm-size` parameter value to a [Gen2 VM size](/azure/virtual-machines/generation-2). |
58
61
62
+
59
63
> [!NOTE]
60
64
> If you specify a Gen2 VM size and the operating system as Windows Server 2019, you receive an `ErrorCode_Windows2019NotSupportedWithGen2VM` error code that's accompanied by the following error message:
61
65
>
@@ -66,5 +70,11 @@ Upgrade the cluster, and then create a new Windows Server nodepool that supports
66
70
> - Pick a Gen1 VM size to use together with Windows Server 2019.
67
71
>
68
72
> - Set the operating system SKU to **Windows Server 2022** to use together with your Gen2 VM.
73
+
>
74
+
> <!-- Added: Verify VM size compatibility -->
75
+
> - Before creating a new nodepool, verify that the VM size supports Gen2 VMs in your region by running `az vm list-sizes --location <region> --query "[?contains(name, 'v2')].name" --output table`.
76
+
>
77
+
> <!-- Added: Check node image versions -->
78
+
> - To confirm the current and available node image versions, run `az aks nodepool show --resource-group <resource-group> --cluster-name <cluster-name> --name <nodepool-name> --query nodeImageVersion` to check the current version, and `az aks nodepool get-upgrades --resource-group <resource-group> --cluster-name <cluster-name> --nodepool-name <nodepool-name> --query latestNodeImageVersion` to check the latest available version.
69
79
70
80
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]
0 commit comments