Skip to content

Commit fcb87a5

Browse files
Merge pull request #252106 from schaffererin/windowsquickstart20192022tab
Putting 2019 and 2022 in different tabs
2 parents 89eb519 + 94aea9d commit fcb87a5

File tree

2 files changed

+48
-11
lines changed

2 files changed

+48
-11
lines changed

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

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,17 +140,37 @@ By default, an AKS cluster is created with a node pool that can run Linux contai
140140
--node-count 1
141141
```
142142
143-
### [Add a Windows Server 2019 or Windows Server 2022 node pool](#tab/add-windows-server-2019-or-2022-node-pool)
143+
### [Add a Windows Server 2019 node pool](#tab/add-windows-server-2019-node-pool)
144144
145-
AKS supports Windows Server 2019 and 2022 node pools. Windows Server 2022 is the default operating system for Kubernetes versions 1.25.0 and higher. Windows Server 2019 is the default OS for earlier versions. To use Windows Server 2019 or Windows Server 2022, you need to specify the following parameters:
145+
Windows Server 2022 is the default operating system for Kubernetes versions 1.25.0 and higher. Windows Server 2019 is the default OS for earlier versions. To use Windows Server 2019, you need to specify the following parameters:
146146
147147
- `os-type` set to `Windows`
148-
- `os-sku` set to `Windows2019` *or* `Windows2022`
148+
- `os-sku` set to `Windows2019`
149149
150150
> [!NOTE]
151-
>
152-
> - Windows Server 2022 requires Kubernetes version 1.23.0 or higher.
153-
> - Windows Server 2019 is being retired after Kubernetes version 1.32 reaches end of life (EOL) and won't be supported in future releases. For more information about this retirement, see the [AKS release notes][aks-release-notes].
151+
> Windows Server 2019 is being retired after Kubernetes version 1.32 reaches end of life (EOL) and won't be supported in future releases. For more information about this retirement, see the [AKS release notes][aks-release-notes].
152+
153+
- Add a Windows Server 2019 node pool using the `az aks nodepool add` command.
154+
155+
```azurecli-interactive
156+
az aks nodepool add \
157+
--resource-group myResourceGroup \
158+
--cluster-name myAKSCluster \
159+
--os-type Windows \
160+
--os-sku Windows2019 \
161+
--name npwin \
162+
--node-count 1
163+
```
164+
165+
### [Add a Windows Server 2022 node pool](#tab/add-windows-server-2022-node-pool)
166+
167+
Windows Server 2022 is the default operating system for Kubernetes versions 1.25.0 and higher. Windows Server 2019 is the default OS for earlier versions. To use Windows Server 2022, you need to specify the following parameters:
168+
169+
- `os-type` set to `Windows`
170+
- `os-sku` set to `Windows2022`
171+
172+
> [!NOTE]
173+
> Windows Server 2022 requires Kubernetes version 1.23.0 or higher.
154174
155175
- Add a Windows Server 2022 node pool using the `az aks nodepool add` command.
156176

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

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,23 +98,40 @@ By default, an AKS cluster is created with a node pool that can run Linux contai
9898
New-AzAksNodePool -ResourceGroupName myResourceGroup -ClusterName myAKSCluster -VmSetType VirtualMachineScaleSets -OsType Windows -Name npwin
9999
```
100100
101-
### [Add a Windows Server 2019 or Windows Server 2022 node pool](#tab/add-windows-server-2019-or-2022-node-pool)
101+
### [Add a Windows Server 2019 node pool](#tab/add-windows-server-2019-node-pool)
102102
103-
AKS supports Windows Server 2019 and 2022 node pools. Windows Server 2022 is the default operating system for Kubernetes versions 1.25.0 and higher. Windows Server 2019 is the default OS for earlier versions. To use Windows Server 2019 or Windows Server 2022, you need to specify the following parameters:
103+
Windows Server 2022 is the default operating system for Kubernetes versions 1.25.0 and higher. Windows Server 2019 is the default OS for earlier versions. To use Windows Server 2019, you need to specify the following parameters:
104104
105105
* `OsType` set to `Windows`
106-
* `OsSKU` set to `Windows2019` *or* `Windows2022`
106+
* `OsSKU` set to `Windows2019`
107107
108108
> [!NOTE]
109109
>
110110
> * `OsSKU` requires PowerShell Az module version 9.2.0 or higher.
111-
> * Windows Server 2022 requires Kubernetes version 1.23.0 or higher.
112111
> * Windows Server 2019 is being retired after Kubernetes version 1.32 reaches end of life (EOL) and won't be supported in future releases. For more information about this retirement, see the [AKS release notes][aks-release-notes].
113112
113+
* Add a Windows Server 2019 node pool using the [`New-AzAksNodePool`][new-azaksnodepool] cmdlet.
114+
115+
```azurepowershell-interactive
116+
New-AzAksNodePool -ResourceGroupName myResourceGroup -ClusterName myAKSCluster -VmSetType VirtualMachineScaleSets -OsType Windows -OsSKU Windows2019 -Name npwin
117+
```
118+
119+
### [Add a Windows Server 2022 node pool](#tab/add-windows-server-2022-node-pool)
120+
121+
Windows Server 2022 is the default operating system for Kubernetes versions 1.25.0 and higher. Windows Server 2019 is the default OS for earlier versions. To use Windows Server 2022, you need to specify the following parameters:
122+
123+
* `OsType` set to `Windows`
124+
* `OsSKU` set to `Windows2022`
125+
126+
> [!NOTE]
127+
>
128+
> * `OsSKU` requires PowerShell Az module version 9.2.0 or higher.
129+
> * Windows Server 2022 requires Kubernetes version 1.23.0 or higher.
130+
114131
* Add a Windows Server 2022 node pool using the [`New-AzAksNodePool`][new-azaksnodepool] cmdlet.
115132
116133
```azurepowershell-interactive
117-
New-AzAksNodePool -ResourceGroupName myResourceGroup -ClusterName myAKSCluster -VmSetType VirtualMachineScaleSets -OsType Windows -OsSKU Windows2019 Windows -Name npwin
134+
New-AzAksNodePool -ResourceGroupName myResourceGroup -ClusterName myAKSCluster -VmSetType VirtualMachineScaleSets -OsType Windows -OsSKU Windows2022 -Name npwin
118135
```
119136
120137
---

0 commit comments

Comments
 (0)