Reader small image

You're reading from  Learn Azure Administration - Second Edition

Product typeBook
Published inDec 2023
PublisherPackt
ISBN-139781837636112
Edition2nd Edition
Right arrow
Author (1)
Kamil Mrzygłód
Kamil Mrzygłód
author image
Kamil Mrzygłód

Kamil Mrzygłód is a technical lead and technology advisor, working with multiple companies on designing and implementing Azure-based systems and platforms. He's a former Microsoft Azure Microsoft Most Valuable Professional (MVP) and certified trainer, who shares his knowledge via various channels, including conference speeches and open source projects and contributions. Kamil lives in Poland with his two cats and one dog, dedicating some of his time to video games, cooking, and traveling.
Read more about Kamil Mrzygłód

Right arrow

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’...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learn Azure Administration - Second Edition
Published in: Dec 2023Publisher: PacktISBN-13: 9781837636112

Author (1)

author image
Kamil Mrzygłód

Kamil Mrzygłód is a technical lead and technology advisor, working with multiple companies on designing and implementing Azure-based systems and platforms. He's a former Microsoft Azure Microsoft Most Valuable Professional (MVP) and certified trainer, who shares his knowledge via various channels, including conference speeches and open source projects and contributions. Kamil lives in Poland with his two cats and one dog, dedicating some of his time to video games, cooking, and traveling.
Read more about Kamil Mrzygłód