Skip to content

Commit 263a014

Browse files
authored
AKS PowerShell command support Windows OsSKU
1 parent b40ce9e commit 263a014

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

articles/aks/learn/quick-windows-container-deploy-powershell.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,18 @@ creating a node pool to run Windows Server containers, the default value for `-V
126126
[restricted VM sizes][restricted-vm-sizes]. The minimum recommended size is **Standard_D2s_v3**. The
127127
previous command also uses the default subnet in the default vnet created when running `New-AzAksCluster`.
128128

129+
## Add a Windows Server 2019 or Windows Server 2022 node pool
130+
131+
AKS supports Windows Server 2019 and Windows Server 2022 node pools. For Kubernetes versions "1.25.0" and higher, Windows Server 2022 is the default operating system. For earlier versions, Windows Server 2019 will be the default operating system. To use the non-default OS, you must specify the `OsSKU` to `Windows2019` or `Windows2022`.
132+
133+
> [!NOTE]
134+
> OsSKU requires PowerShell Az module version "9.2.0" or higher.
135+
> Windows Server 2022 requires Kubernetes version "1.23.0" or higher.
136+
137+
```azurepowershell-interactive
138+
New-AzAksNodePool -ResourceGroupName myResourceGroup -ClusterName myAKSCluster -VmSetType VirtualMachineScaleSets -OsType Windows -OsSKU Windows2022 Windows -Name npwin
139+
```
140+
129141
## Connect to the cluster
130142

131143
To manage a Kubernetes cluster, you use [kubectl][kubectl], the Kubernetes command-line client. If

0 commit comments

Comments
 (0)