Skip to content

Commit c7901bd

Browse files
authored
Update nodepools-not-upgraded-to-gen2-during-node-image-upgrade.md
1 parent 4ea0db8 commit c7901bd

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

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

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
22
title: Windows nodepools not upgraded to Gen2 during cluster node image upgrade
33
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.
4-
ms.date: 11/20/2024
5-
editor: v-jsitser
6-
ms.reviewer: chiragpa, cssakscic, v-leedennis
4+
ms.date: 04/17/2025
5+
editor: v-jsitser,momajed
6+
ms.reviewer: chiragpa, cssakscic, v-leedennis,momajed
77
ms.service: azure-kubernetes-service
88
#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).
99
ms.custom: sap:Create, Upgrade, Scale and Delete operations (cluster or nodepool)
1010
---
11+
1112
# Windows Server nodepools not upgraded to Gen2 during cluster node image upgrade
1213

1314
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
1718
1819
## Prerequisites
1920

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.
2123

2224
## Symptoms
2325

@@ -51,11 +53,13 @@ When you upgrade the default OS from Windows Server 2019 (`Windows2019`) to Wind
5153

5254
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.
5355

56+
5457
| Kubernetes cluster upgrade version | Cluster creation guidelines |
5558
|---|---|
5659
| 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). |
5760
| 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). |
5861

62+
5963
> [!NOTE]
6064
> 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:
6165
>
@@ -66,5 +70,11 @@ Upgrade the cluster, and then create a new Windows Server nodepool that supports
6670
> - Pick a Gen1 VM size to use together with Windows Server 2019.
6771
>
6872
> - 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.
6979
7080
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]

0 commit comments

Comments
 (0)