# Creating a load balancer rule

Create a load-balancing rule to define how to distribute incoming traffic to your virtual machines.

## Procedure

1. Open your load balancer and click Load balancing rules in the left panel.
2. Click Add.
3. Enter a name for your rule, DemoREST-LBRule for example.
4. Configure the rule as follows:
   | Parameter | Value |
   | --- | --- |
   | Protocol | Select TCP. |
   | Port | Enter 80. |
   | Backend port | Enter the port used to deploy your microservice, 5066 in this<br>example. |
   | Backend pool | Select the backend pool you created, DemoREST-BP. |
   | Health probe | Select the health probe you created, DemoREST-HP. |
5. Keep the default values for the other parameters and click OK.

   ![Add load balancing rule settings.](https://help.qlik.com/talend/en-US/deploy-rest-api-azure/Resources/images/create_lb_rule_01_params.png)