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:
6868
6969### Create a new AKS cluster in the Free tier
7070
71- ``` azurecli-interactive
71+ ``` shell
7272# Create a new AKS cluster in the Free tier
7373
7474az aks create \
@@ -182,7 +182,7 @@ The following example uses the [`az aks update`](/cli/azure/aks#az_aks_update) c
182182
183183### Update an existing cluster from the Standard tier to the Free tier
184184
185- ``` shell
185+ ``` azurecli-interactive
186186# Update an existing cluster from the Standard tier to the Free tier
187187
188188az aks update --resource-group $RESOURCE_GROUP --name $CLUSTER_NAME --tier free
@@ -226,7 +226,7 @@ Results:
226226
227227### Update an existing cluster to the Premium tier
228228
229- ``` shell
229+ ``` azurecli-interactive
230230# Update an existing cluster to the Premium tier
231231az aks update --resource-group $RESOURCE_GROUP --name $CLUSTER_NAME --tier premium --k8s-support-plan AKSLongTermSupport
232232```
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
382382 The following command adds a Windows node pool to an existing AKS cluster, disabling OutboundNAT.
383383
384384 ```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 \
396387 --resource-group $MY_RG \
397388 --cluster-name $AKS_NAME \
398389 --name $NODEPOOL_NAME \
You can’t perform that action at this time.
0 commit comments