Skip to content

Commit 6ad282e

Browse files
author
naman-msft
committed
testing other docs
1 parent c6403b7 commit 6ad282e

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

scenarios/AKSPricingTiers/aks-pricing-tiers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

7474
az 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
188188
az 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
231231
az aks update --resource-group $RESOURCE_GROUP --name $CLUSTER_NAME --tier premium --k8s-support-plan AKSLongTermSupport
232232
```

scenarios/NATGatewayAKSCluster/nat-gateway-aks-cluster.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff 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 \

0 commit comments

Comments
 (0)