You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machine-scale-sets/virtual-machine-scale-sets-networking.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ See [Azure Load Balancer and Virtual Machine Scale Sets](../load-balancer/load-b
42
42
43
43
## Add a Virtual Machine Scale Set to an Application Gateway
44
44
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.
46
46
47
47
### [Portal](#tab/portal1)
48
48
@@ -86,20 +86,20 @@ To add a scale set to the backend pool of an Application Gateway, reference the
86
86
87
87
### [CLI](#tab/cli1)
88
88
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
0 commit comments