Configure the current RD Web and Gateway virtual machine for load balancing
Applies To: Windows Server 2016
Use the following steps to configure load balancing for the RD Web and Gateway virtual machine:
- Remove the public IP address from the first RD Web and Gateway server:
- In the Azure portal, click Browse > Virtual Machines. Click the first WebGw server virtual machine (for example, Contoso-WebGw1), and then selec the value for Public IP address/DNS name.
- Click Dissociate.
- Create an Azure Load Balancer:
a. In the Azure portal click Browse > Load balancers > Add.
b. Enter a name, for example WebGwLB.
c. Select Public for the Scheme, Public IP address, and the Public IP address that you just dissociated in the previous step that has the DNS name label for your deployment.
d. Select the appropriate Subscription, Resource Group, and Location.
e. Click Create.
- Create a probe to monitor which servers are alive:
- In the Azure portal click Browse > Load Balancers., the load balancer you just created, e.g. WebGwLB, and Settings
- Click Probes > Add.
- Enter a name, for example, HTTPS, for the probe. Select TCP as the Protocol, and enter 443 for the Port, then click OK.
Create the backend pool of the Connection Brokers:
In Settings, click Backend address pools > Add.
Enter a name (for example, WebGwBackendPool), then click Add a virtual machine.
Choose an availability set (for example, WebGwAvSet), and then click OK.
Click Choose the virtual machines, select each virtual machine, and then click Select > OK > OK.
- Create the HTTPS and UDP load balancing rules:
- In Settings, click Load balancing rules.
- Select Add for the HTTPS rule.
- Enter a name for the rule, for example, HTTPS, and select TCP for the Protocol. Enter 443 for both Port and Backend port, and click OK.
- In Load balancing rules, click Add for the UDP rule.
- Enter a name for the rule, for example, UDP, and select UDP for the Protocol. Enter 3391 for both Port and Backend port, and click OK.