Skip to content

Commit 9fe28aa

Browse files
authored
Merge pull request #104427 from ShiqianTao/shtao/aks-windows-ossku
AKS PowerShell command support Windows OsSKU
2 parents 263ec49 + 0b38822 commit 9fe28aa

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

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

128+
## Add a Windows Server 2019 or Windows Server 2022 node pool
129+
130+
AKS supports Windows Server 2019 and 2022 node pools. For Kubernetes version 1.25.0 and higher, Windows Server 2022 is the default operating system. For earlier Kubernetes versions, Windows Server 2019 is the default OS. To use Windows Server 2019, you need to specify the following parameters:
131+
- **osType** set the value to `Windows`
132+
- **osSKU** set the value to `Windows2019`
133+
134+
> [!NOTE]
135+
> OsSKU requires PowerShell Az module version "9.2.0" or higher.
136+
> Windows Server 2022 requires Kubernetes version "1.23.0" or higher.
137+
138+
```azurepowershell-interactive
139+
New-AzAksNodePool -ResourceGroupName myResourceGroup -ClusterName myAKSCluster -VmSetType VirtualMachineScaleSets -OsType Windows -OsSKU Windows2019 Windows -Name npwin
140+
```
141+
128142
## Connect to the cluster
129143

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

0 commit comments

Comments
 (0)