Skip to content

Commit eff60f4

Browse files
authored
Update nodepools-not-upgraded-to-gen2-during-node-image-upgrade.md
Edit review per CI 5507
1 parent 47eb807 commit eff60f4

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

support/azure/azure-kubernetes/create-upgrade-delete/nodepools-not-upgraded-to-gen2-during-node-image-upgrade.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Windows node pools not upgraded to Gen2 during cluster node image upgrade
3-
description: Troubleshoot why Windows Server node pools don't get upgraded automatically from Gen1 to Gen2 when a cluster node image is upgraded in Azure Kubernetes Service.
2+
title: Windows Node Pools Not Upgraded to Gen2 During Cluster Node Image Upgrade
3+
description: Troubleshoot an issue that prevents Windows Server node pools from upgrading automatically from Gen1 to Gen2 when a cluster node image is upgraded in Azure Kubernetes Service.
44
ms.date: 04/17/2025
55
editor: v-jsitser
66
ms.reviewer: chiragpa, cssakscic, momajed
@@ -32,15 +32,15 @@ Existing Windows Server node pools don't get upgraded from Gen1 to Gen2 when you
3232

3333
### Cause 1: Existing node pools aren't automatically upgraded to Gen2 VMs
3434

35-
By design, a node image upgrade doesn't support updating or upgrading existing node pools. The `az aks upgrade` and `az aks nodepool upgrade` commands upgrade only the node image (to a later node image version). Those commands don't upgrade the corresponding VM generation.
35+
By design, a node image upgrade doesn't support updating or upgrading existing node pools. The `az aks upgrade` and `az aks nodepool upgrade` commands upgrade only the node image (to a later node image version). These commands don't upgrade the corresponding VM generation.
3636

3737
### Cause 2: Cluster upgrade to Kubernetes version 1.25 or a later version upgrades only the OS
3838

39-
When you upgrade your cluster to Kubernetes version 1.25 or a later version, only the operating system (OS) is upgraded (to Windows Server 2022). Existing node pools aren't affected. The associated Azure Virtual Machine Scale Sets will contain VMs that have the same Gen1 VM.
39+
When you upgrade your cluster to Kubernetes version 1.25 or a later version, only the operating system (OS) is upgraded (to Windows Server 2022). Existing node pools aren't affected. The associated Azure Virtual Machine Scale Sets contain VMs that have the same Gen1 VM.
4040

4141
### Cause 3: Cluster upgraded and new node pool created by using Windows Server 2022 without specifying a valid VM size
4242

43-
After you upgrade the cluster to Kubernetes version 1.25 or a later version, you specify Windows Server 2022 as the OS to use on the node pool's VMs. However, the VMs don't use a Gen2 node image reference because of one of the following reasons:
43+
After you upgrade the cluster to Kubernetes version 1.25 or a later version, you specify Windows Server 2022 as the OS to use on the node pool's VMs. However, the VMs don't use a Gen2 node image reference for one of the following reasons:
4444

4545
- You don't specify a VM size, and the default VM size in the region doesn't support Gen2 VMs.
4646

@@ -52,15 +52,14 @@ When you upgrade the default OS from Windows Server 2019 (`Windows2019`) to Wind
5252

5353
Upgrade the cluster, and then create a new Windows Server node pool that supports [Gen2 VM sizes](/azure/virtual-machines/generation-2) on that cluster according to the following guidelines.
5454

55-
5655
| Kubernetes cluster upgrade version | Cluster creation guidelines |
5756
|---|---|
5857
| 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). |
59-
| 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+
| Any version earlier 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). |
6059

6160

6261
> [!NOTE]
63-
> 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:
62+
> If you specify a Gen2 VM size and set the operating system as Windows Server 2019, you receive an `ErrorCode_Windows2019NotSupportedWithGen2VM` error code that's accompanied by the following error message:
6463
>
6564
> > \<virtual-machine-size> is a Gen 2-only VM. Windows2019 does not support Gen 2 VMs. However, you can select a Gen 1 VM size or set os_sku to 2022.
6665
>
@@ -70,8 +69,10 @@ Upgrade the cluster, and then create a new Windows Server node pool that support
7069
>
7170
> - Set the operating system SKU to **Windows Server 2022** to use together with your Gen2 VM.
7271
>
73-
> - Before you create a new node pool, 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`.
72+
> - Before you create a new node pool, verify that the VM size supports Gen2 VMs in your region. To do this, run `az vm list-sizes --location <region> --query "[?contains(name, 'v2')].name" --output table`.
7473
>
75-
> - 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.
74+
> - To verify the current and available node image versions, run the following commands:
75+
> - To check the current version: `az aks nodepool show --resource-group <resource-group> --cluster-name <cluster-name> --name <nodepool-name> --query nodeImageVersion`
76+
> - To check the latest available version: `az aks nodepool get-upgrades --resource-group <resource-group> --cluster-name <cluster-name> --nodepool-name <nodepool-name> --query latestNodeImageVersion`
7677
7778
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]

0 commit comments

Comments
 (0)