Skip to content

Commit 157e6d5

Browse files
committed
spelling
1 parent 0421602 commit 157e6d5

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

articles/virtual-machine-scale-sets/virtual-machine-scale-sets-networking.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ See [Azure Load Balancer and Virtual Machine Scale Sets](../load-balancer/load-b
4242

4343
## Add a Virtual Machine Scale Set to an Application Gateway
4444

45-
To add a scale set to the backend pool of an Application Gateway, reference the Application Gateway backend pool in your scale sets network profile. This can be done either when creating the scale set (see ARM Template below) or on an existing scale set.
45+
To add a scale set to the backend pool of an Application Gateway, reference the Application Gateway backend pool in your scale set's network profile. This can be done either when creating the scale set (see ARM Template below) or on an existing scale set.
4646

4747
### [Portal](#tab/portal1)
4848

@@ -86,20 +86,20 @@ To add a scale set to the backend pool of an Application Gateway, reference the
8686

8787
### [CLI](#tab/cli1)
8888

89-
```azurecli
90-
appGWName=<appGwName>
91-
appGWResourceGroup=<appGWRGName>
92-
backendPoolName=<backendPoolName>
93-
backendPoolId=$(az network application-gateway address-pool show --gateway-name $appGWName -g $appGWResourceGroup -n $backendPoolName --query id -otsv)
94-
95-
vmssName=<vmssName>
96-
vmssResourceGroup=<vmssRGName>
97-
98-
# add app gw backend pool to first nic's first ip config
99-
az vmss update -n $vmssName -g $vmssResourceGroup --add "virtualMachineProfile.NetworkProfile.NetworkInterfaceConfigurations[0].ipConfigurations[0].applicationGatewayBackendAddressPools" "id=$backendPoolId"
100-
101-
# update instances
102-
az vmss update-instances --instance-ids * --name $vmssName --resource-group $vmssResourceGroup
89+
```azurecli-interactive
90+
appGWName=<appGwName>
91+
appGWResourceGroup=<appGWRGName>
92+
backendPoolName=<backendPoolName>
93+
backendPoolId=$(az network application-gateway address-pool show --gateway-name $appGWName -g $appGWResourceGroup -n $backendPoolName --query id -otsv)
94+
95+
vmssName=<vmssName>
96+
vmssResourceGroup=<vmssRGName>
97+
98+
# add app gw backend pool to first nic's first ip config
99+
az vmss update -n $vmssName -g $vmssResourceGroup --add "virtualMachineProfile.NetworkProfile.NetworkInterfaceConfigurations[0].ipConfigurations[0].applicationGatewayBackendAddressPools" "id=$backendPoolId"
100+
101+
# update instances
102+
az vmss update-instances --instance-ids * --name $vmssName --resource-group $vmssResourceGroup
103103
```
104104

105105
### [ARM template](#tab/arm1)

0 commit comments

Comments
 (0)