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
+24-4Lines changed: 24 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,29 +109,49 @@ az aks create \
109
109
110
110
After a few minutes, the command completes and returns JSON-formatted information about the cluster. Occasionally the cluster can take longer than a few minutes to provision. Allow up to 10 minutes in these cases.
111
111
112
+
## Add a Windows node pool
113
+
By default, an AKS cluster is created with a node pool that can run Linux containers. Use the `az aks nodepool add` command to add an additional node pool that can run Windows Server containers alongside the Linux node pool.
114
+
115
+
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.
116
+
117
+
Use the `az aks nodepool add` command to add a Windows nodepool:
118
+
119
+
```azurecli
120
+
az aks nodepool add \
121
+
--resource-group myResourceGroup \
122
+
--cluster-name myAKSCluster \
123
+
--os-type Windows \
124
+
--name npwin \
125
+
--node-count 1
126
+
```
127
+
128
+
The above command creates a new node pool named *npwin* and adds it to the *myAKSCluster*. The above command also uses the default subnet in the default vnet created when running `az aks create`. The OS SKU was not specified so the nodepool will be set to the default operating system based on the Kubernetes version of the cluster.
129
+
130
+
112
131
## Add a Windows Server 2019 node pool
113
132
114
-
By default, an AKS cluster is created with a node pool that can run Linux containers. Use `az aks nodepool add` command to add an additional node pool that can run Windows Server containers alongside the Linux node pool.
133
+
When creating a Windows node pool, the default operating system will be Windows Server 2019 for Kubernetes versions below "1.25.0". To use Windows Server 2019 nodes when not default, you will need to specify an OS SKU type of `Windows2019`.
115
134
116
135
```azurecli-interactive
117
136
az aks nodepool add \
118
137
--resource-group myResourceGroup \
119
138
--cluster-name myAKSCluster \
120
139
--os-type Windows \
140
+
--os-sku Windows2019 \
121
141
--name npwin \
122
142
--node-count 1
123
143
```
124
144
125
-
The above command creates a new node pool named *npwin* and adds it to the *myAKSCluster*. The above command also uses the default subnet in the default vnet created when running `az aks create`.
145
+
The above command creates a new Windows Server 2019 node pool named *npwin* and adds it to the *myAKSCluster*. The above command also uses the default subnet in the default vnet created when running `az aks create`.
126
146
127
147
## Add a Windows Server 2022 node pool
128
148
129
-
When creating a Windows node pool, the default operating system will be Windows Server 2019. To use Windows Server 2022 nodes, you will need to specify an OS SKU type of `Windows2022`.
149
+
When creating a Windows node pool, the default operating system will be Windows Server 2022 for Kubernetes versions "1.25.0" and higher. To use Windows Server 2022 nodes when not default, you will need to specify an OS SKU type of `Windows2022`.
130
150
131
151
> [!NOTE]
132
152
> Windows Server 2022 requires Kubernetes version "1.23.0" or higher.
133
153
134
-
Use `az aks nodepool add` command to add a Windows Server 2022 node pool:
154
+
Use the `az aks nodepool add` command to add a Windows Server 2022 node pool:
0 commit comments