Skip to content

Commit 9069320

Browse files
author
naman-msft
committed
updated scenarios
1 parent 5da6bdb commit 9069320

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

scenarios/AKSHealthProbeMode/aks-health-probe-mode.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,13 @@ To enable the health probe mode feature, run one of the following commands:
194194

195195
Enable `ServiceNodePort` health probe mode (default) for a cluster:
196196

197-
```azurecli
197+
```shell
198198
export RESOURCE_GROUP="aks-rg"
199199
export AKS_CLUSTER_NAME="aks-cluster"
200200
az aks update --resource-group $RESOURCE_GROUP --name $AKS_CLUSTER_NAME --cluster-service-load-balancer-health-probe-mode ServiceNodePort
201201
```
202202
Results:
203203

204-
<!-- expected_similarity=0.3 -->
205-
206204
```output
207205
{
208206
"name": "aks-cluster",
@@ -225,9 +223,8 @@ export RESOURCE_GROUP="MyAksResourceGroup"
225223
export AKS_CLUSTER_NAME="MyAksCluster"
226224
az aks update --resource-group $RESOURCE_GROUP --name $AKS_CLUSTER_NAME --cluster-service-load-balancer-health-probe-mode Shared
227225
```
228-
Results:
229226

230-
<!-- expected_similarity=0.3 -->
227+
Results:
231228

232229
```output
233230
{

scenarios/CSEErrorsAKS/cse-errors-aks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ Set up your custom Domain Name System (DNS) server so that it can do name resolu
8484
export VMSS_NAME=$(az vmss list --resource-group $NODE_RESOURCE_GROUP --query "[0].name" -o tsv)
8585
export DNS_IP_ADDRESS="10.0.0.10"
8686
export INSTANCE_ID=$(az vmss list-instances --resource-group $NODE_RESOURCE_GROUP --name $VMSS_NAME --query "[0].instanceId" -o tsv)
87+
export API_FQDN=$(az aks show --resource-group $RG_NAME --name $CLUSTER_NAME --query fqdn -o tsv)
88+
8789
az vmss run-command invoke \
8890
--resource-group $NODE_RESOURCE_GROUP \
8991
--name $VMSS_NAME \
@@ -99,16 +101,14 @@ Set up your custom Domain Name System (DNS) server so that it can do name resolu
99101
--command-id RunShellScript \
100102
--output tsv \
101103
--query "value[0].message" \
102-
--scripts "nslookup <api-fqdn> $DNS_IP_ADDRESS"
104+
--scripts "nslookup $API_FQDN $DNS_IP_ADDRESS"
103105
```
104106
105107
- For VM availability set nodes, use the [az vm run-command invoke](/cli/azure/vm/run-command#az-vm-run-command-invoke) command:
106108
107109
> **Important:** You must specify the `--name` of a valid VM in an availability set in your resource group. Here is a template for running network checks.
108110
109111
```azurecli
110-
export API_FQDN=$(az aks show --resource-group $RG_NAME --name $CLUSTER_NAME --query fqdn -o tsv)
111-
112112
az vm run-command invoke \
113113
--resource-group $RESOURCE_GROUP \
114114
--name $AVAILABILITY_SET_VM \

0 commit comments

Comments
 (0)