Understanding load balancer rules
So far, we have defined frontend and backend pools for our load balancer. Now, we need to connect those components by providing a set of rules that will tell Azure Load Balancer how to distribute the load. A rule is a simple map of values that links our frontend IP address with the set of machines defined for a given backend pool. In the upcoming sections, you’ll create a rule and configure it. We’ll also discuss more advanced topics, such as Floating IP and high-availability ports.
Creating a load balancer rule
Let’s create our first rule using the following command:
az network lb rule create \ -g <resource-group-name> \ --lb-name <load-balancer-name> \ -n WebServer \ --protocol Tcp \ --frontend-ip LoadBalancerFrontEnd \ --frontend-port 80 \ --backend-pool-name SecondPool \ --backend-port 80
The rule we’...