Skip to content

Commit fb72b6d

Browse files
Updated NPM user doc- Addressed PR comments by Nick and Hunter
1 parent 82f3ee3 commit fb72b6d

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

articles/aks/use-network-policies.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ $LOCATION=canadaeast
8989

9090
Create the AKS cluster and specify *azure* for the `network-plugin` and `network-policy`.
9191

92-
Use the following command for a cluster running with **Linux** node pools:
92+
Use the following command to create a cluster:
9393
```azurecli
9494
az aks create \
9595
--resource-group $RESOURCE_GROUP_NAME \
@@ -117,14 +117,12 @@ Please execute the following commands prior to creating a cluster:
117117
> At this time, Azure NPM with Windows nodes is available on Windows Server 2022 only
118118
>
119119
120-
Now, you should replace the values for *$RESOURCE_GROUP_NAME*, *$CLUSTER_NAME*, *$WINDOWS_USERNAME*, *$WINDOWS_PASSWORD* and *$k8S_VERSION* variables.
120+
Now, you should replace the values for *$RESOURCE_GROUP_NAME*, *$CLUSTER_NAME* and *$WINDOWS_USERNAME* variables.
121121

122122
```azurecli-interactive
123123
$RESOURCE_GROUP_NAME=myResourceGroup-NP
124124
$CLUSTER_NAME=myAKSCluster
125125
$WINDOWS_USERNAME=myWindowsUserName
126-
$WINDOWS_PASSWORD=myWindowsPassword
127-
$k8S_VERSION=myk8sVersion
128126
$LOCATION=canadaeast
129127
```
130128

@@ -134,19 +132,16 @@ Create a username to use as administrator credentials for your Windows Server co
134132
echo "Please enter the username to use as administrator credentials for Windows Server containers on your cluster: " && read $WINDOWS_USERNAME
135133
```
136134

137-
Use the following command for a cluster running with **Windows Server 2022** node pools:
135+
Use the following command to create a cluster :
138136

139137
```azurecli
140138
az aks create \
141139
--resource-group $RESOURCE_GROUP_NAME \
142140
--name $CLUSTER_NAME \
143-
--generate-ssh-keys \
144-
--windows-admin-username $WINDOWS_USERNAME \
145-
--windows-admin-password $WINDOWS_PASSWORD \
146-
--kubernetes-version $k8S_VERSION \
141+
--node-count 1 \
142+
--windows-admin-username $WINDOWS_USERNAME \
147143
--network-plugin azure \
148-
--vm-set-type VirtualMachineScaleSets \
149-
--node-count 1
144+
--network-policy azure
150145
```
151146

152147
It takes a few minutes to create the cluster. By default, your cluster is created with only a Linux node pool. If you would like to use Windows node pools, you can add one. For example:

0 commit comments

Comments
 (0)