You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/aks/learn/quick-windows-container-deploy-cli.md
+26-6Lines changed: 26 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,17 +140,37 @@ By default, an AKS cluster is created with a node pool that can run Linux contai
140
140
--node-count 1
141
141
```
142
142
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)
144
144
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:
146
146
147
147
- `os-type` set to `Windows`
148
-
- `os-sku` set to `Windows2019` *or* `Windows2022`
148
+
- `os-sku` set to `Windows2019`
149
149
150
150
> [!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.
154
174
155
175
- Add a Windows Server 2022 node pool using the `az aks nodepool add` command.
### [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)
102
102
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:
104
104
105
105
* `OsType` set to `Windows`
106
-
* `OsSKU` set to `Windows2019` *or* `Windows2022`
106
+
* `OsSKU` set to `Windows2019`
107
107
108
108
> [!NOTE]
109
109
>
110
110
> * `OsSKU` requires PowerShell Az module version 9.2.0 or higher.
111
-
> * Windows Server 2022 requires Kubernetes version 1.23.0 or higher.
112
111
> * 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].
113
112
113
+
* Add a Windows Server 2019 node pool using the [`New-AzAksNodePool`][new-azaksnodepool] cmdlet.
### [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
+
114
131
* Add a Windows Server 2022 node pool using the [`New-AzAksNodePool`][new-azaksnodepool] cmdlet.
115
132
116
133
```azurepowershell-interactive
117
-
New-AzAksNodePool -ResourceGroupName myResourceGroup -ClusterName myAKSCluster -VmSetType VirtualMachineScaleSets -OsType Windows -OsSKU Windows2019 Windows -Name npwin
0 commit comments