Azure Load Balancer: Configure Load Balancing Rules - Part Two

Prerequisites

  • Azure account 

To see my previous articles of this series, go through the following links:

Now let's get started with the following steps:

Configure load balancing rules

We need to first configure a back-end address pool and a probe before configuring a load balancing rule.

Step 1

Configure a back-end pool

In the Settings blade, click Backend pools.

 
In the Backend address pools blade, click Add Button.

 

In the Add backend pool blade, type a Name for the backend pool, and then click OK Button.

 

Step 2

Configure a probe.

In the Azure portal, click Browse > Load balancers, and then click the load balancer you created above. In the Settings blade, click Probes.

  

In the Probes blade, click Add Button.

 

In the Add probe blade, type a Name for the probe and Under Protocol, select HTTP or TCP. Then under Port, specify the port to use when accessing the probe. In the Next Path, specify the path to use as a probe. Then in Interval specify how frequently to probe the application. Next, in Unhealthy Threshold, specify how many attempts should fail before the backend VM is marked as unhealthy. Finally click OK to create probe.

   

Step 3

Configure load balancing rules,

In the Azure portal, click Browse > Load balancers, and then click the load balancer you created above. In the Settings blade, click Load balancing rules.



In the Load balancing rules blade, click Add Button.

 

In the Add load balancing rule blade, type a Name for the rule. Next, under Protocol, select HTTP or TCP. Next, under Port, specify the port clients to connect to in the load balancer. Next, under Backend port, specify the port to be used in the backend pool. Next, under Backend pool, select the backend pool you created above. Next, under Session persistence, select how you want sessions to persist. Next, under Idle timeout (minutes), specify the idle timeout. Next, under Floating IP (direct server return), click Disabled or Enabled. Finally Click OK.