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
+77-2Lines changed: 77 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,8 +40,76 @@ Azure Accelerated Networking improves network performance by enabling single roo
40
40
## Azure Virtual Machine Scale Sets with Azure Load Balancer
41
41
See [Azure Load Balancer and Virtual Machine Scale Sets](../load-balancer/load-balancer-standard-virtual-machine-scale-sets.md) to learn more about how to configure your Standard Load Balancer with Virtual Machine Scale Sets based on your scenario.
42
42
43
-
## Create a scale set that references an Application Gateway
44
-
To create a scale set that uses an application gateway, reference the backend address pool of the application gateway in the ipConfigurations section of your scale set as in this ARM template config:
43
+
## Add a Virtual Machine Scale Set to an Application Gateway
44
+
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
+
47
+
### Adding Uniform Orchestration Virtual Machine Scale Sets to an Application Gateway
48
+
49
+
When adding Uniform Virtual Machine Scale Sets to an Application Gateway's backend pool, the process will differ for new or existing scale sets:
50
+
51
+
- For new scale sets, reference the Application Gateway's backend pool ID in your scale set model's network profile, under one or more network interface IP configurations. When deployed, instances added to your scale set will be placed in the Application Gateway's backend pool.
52
+
- For existing scale sets, first add the Application Gateway's backend pool ID in your scale set model's network profile, then apply the model your existing instances by an upgrade. If the scale set's upgrade policy is `Automatic` or `Rolling`, instances will be updated for you. If it is `Manual`, you need to upgrade the instances manually.
53
+
54
+
#### [Portal](#tab/portal1)
55
+
56
+
1. Create an Application Gateway and backend pool in the same region as your scale set, if you do not already have one
57
+
1. Navigate to the Virtual Machine Scale Set in the Portal
58
+
1. Under **Settings**, open the **Networking** pane
59
+
1. In the Networking pane, select the **Load balancing** tab and click **Add Load Balancing**
60
+
1. Select **Application Gateway** from the Load Balancing Options dropdown, and choose an existing Application Gateway
61
+
1. Select the target backend pool and click **Save**
62
+
1. If your scale set Upgrade Policy is 'Manual', navigate to the **Settings** > **Instances** pane to select and upgrade each of your instances
backendPoolId=$(az network application-gateway address-pool show --gateway-name $appGWName -g $appGWResourceGroup -n $backendPoolName --query id -otsv)
101
+
102
+
vmssName=<vmssName>
103
+
vmssResourceGroup=<vmssRGName>
104
+
105
+
# add app gw backend pool to first nic's first ip config
106
+
az vmss update -n $vmssName -g $vmssResourceGroup --add "virtualMachineProfile.NetworkProfile.NetworkInterfaceConfigurations[0].ipConfigurations[0].applicationGatewayBackendAddressPools" "id=$backendPoolId"
107
+
108
+
# update instances
109
+
az vmss update-instances --instance-ids * --name $vmssName --resource-group $vmssResourceGroup
110
+
```
111
+
112
+
#### [ARM template](#tab/arm1)
45
113
46
114
```json
47
115
"ipConfigurations": [{
@@ -56,6 +124,13 @@ To create a scale set that uses an application gateway, reference the backend ad
56
124
}]
57
125
```
58
126
127
+
---
128
+
<!-- The three dashes above show that your section of tabbed content is complete. Don't remove them :) -->
129
+
130
+
### Adding Flexible Orchestration Virtual Machine Scale Sets to an Application Gateway
131
+
132
+
When adding a Flexible scale set to an Application Gateway, the process is the same as adding standalone VMs to an Application Gateway's backend pool--you update the virtual machine's network interface IP configuration to be part of the backend pool. This can be done either [through the Application Gateway's configuration](/azure/application-gateway/create-multiple-sites-portal#add-backend-servers-to-backend-pools) or by configuring the virtual machine's network interface configuration.
133
+
59
134
>[!NOTE]
60
135
> Note that the application gateway must be in the same virtual network as the scale set but must be in a different subnet from the scale set.
0 commit comments