File tree Expand file tree Collapse file tree 2 files changed +5
-14
lines changed Expand file tree Collapse file tree 2 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ Results:
68
68
69
69
### Create a new AKS cluster in the Free tier
70
70
71
- ``` azurecli-interactive
71
+ ``` shell
72
72
# Create a new AKS cluster in the Free tier
73
73
74
74
az aks create \
@@ -182,7 +182,7 @@ The following example uses the [`az aks update`](/cli/azure/aks#az_aks_update) c
182
182
183
183
### Update an existing cluster from the Standard tier to the Free tier
184
184
185
- ``` shell
185
+ ``` azurecli-interactive
186
186
# Update an existing cluster from the Standard tier to the Free tier
187
187
188
188
az aks update --resource-group $RESOURCE_GROUP --name $CLUSTER_NAME --tier free
@@ -226,7 +226,7 @@ Results:
226
226
227
227
### Update an existing cluster to the Premium tier
228
228
229
- ``` shell
229
+ ``` azurecli-interactive
230
230
# Update an existing cluster to the Premium tier
231
231
az aks update --resource-group $RESOURCE_GROUP --name $CLUSTER_NAME --tier premium --k8s-support-plan AKSLongTermSupport
232
232
```
Original file line number Diff line number Diff line change @@ -382,17 +382,8 @@ Windows enables OutboundNAT by default. You can now manually disable OutboundNAT
382
382
The following command adds a Windows node pool to an existing AKS cluster, disabling OutboundNAT.
383
383
384
384
```azurecli-interactive
385
- export RANDOM_SUFFIX=$(openssl rand -hex 3)
386
- export MY_RG="myResourceGroup$RANDOM_SUFFIX"
387
- export AKS_NAME="myNatCluster$RANDOM_SUFFIX"
388
- export NODEPOOL_NAME="mynp$RANDOM_SUFFIX"
389
- az group create --name $MY_RG --location "eastus2"
390
- az aks create \
391
- --resource-group $MY_RG \
392
- --name $AKS_NAME \
393
- --node-count 1 \
394
- --generate-ssh-keys
395
- az aks nodepool add \
385
+ export NODEPOOL_NAME=$(az aks nodepool list --resource-group $MY_RG --cluster-name $AKS_NAME --query ' [0].name' --output tsv)
386
+ az aks nodepool add \
396
387
--resource-group $MY_RG \
397
388
--cluster-name $AKS_NAME \
398
389
--name $NODEPOOL_NAME \
You can’t perform that action at this time.
0 commit comments