Time
23 hours 16 minutes
Difficulty
Intermediate
CEU/CPE
23

Video Transcription

00:00
Hello and welcome back to Cy Berries. Microsoft Azure Administrator A Z 103 course. I'm your instructor, Will Carlson. And this is Episode 44 as your load balancer.
00:10
In today's episode, we're gonna talk about the many configuration options available to us as administrators here in Azure, relating to load balancers.
00:18
And we're gonna talk about that as we go through configuring a load balance or here in portal,
00:24
you get started. We're gonna go ahead and step into portal and we're gonna come down here till load balancers. We're gonna go ahead and slick ad load balancer.
00:32
As with most resource is here, we have to select a subscription and a resource group. I'm gonna go ahead and create a new resource group here for our load balancer.
00:41
So like, OK,
00:43
then I'm gonna name our load balancer as well.
00:47
Go ahead and put this down into the central US region.
00:50
We can see our first options here about load balancers has to do with the type of load balancer that it's going to be now. Public load balancer is most likely going to be the one you're familiar with. And this is gonna be a load balancer that takes traffic from the public Internet and balances it or sends it through to resource is on the internal Internet
01:08
rather on the internal network.
01:11
A good example of this would be a website that goes through a load balancer to multiple Web servers that automatically scale using a scale set here in azure to handle traffic load.
01:22
An internal load balancer is going to be one that does Onley routes, internal traffic and that could be used for a Web server that communicates with multiple database servers. Who's traffic is load balanced to those database servers.
01:37
Now we have a couple of skews here, available to us or load balancers. Here in Azure, the basic load balancer is going to be free.
01:45
It's also only going to support connections of up to 100 servers, and all of those virtual machines must be in either the same availability set or the same scale set
01:55
a basic load. Balancer also does not support https, and it's gonna be open toe all traffic by default. If you want to filter that, you'll need to do that through the use of a network security group.
02:07
Now a standard load balance her is gonna be able to service up to 1000 servers across any mix of availability sets scale sets
02:15
also as long as they're in the same virtual network.
02:20
A standard load balancer is also going to support http as health probes
02:23
and it's gonna have security closed by default. So if you want traffic to come into your standard load balancer, you're going to have to allow that through a network security group rule
02:35
One last thing here has to do with the pricing of these two options and the basic load balancer is going to be free. Whereas the standard load balancer is going to depend and be priced based on the number of rules that you use in the amount of data that the load balancer processes,
02:51
we can come down here into public I p address and either create a new one or use an existing one. We're gonna go ahead and create a new one.
02:59
We're gonna go ahead and set this I p address assignment to Static just so that I p address doesn't change.
03:06
We don't need to add an I p B six address. We're all good there
03:08
and then we could go ahead and select review create. But I want to go ahead and point out some of the options available when they select standard.
03:15
I'll see that the standard load balancer has to be associated with a standard public I p address
03:22
so we don't have the option of whether that's dynamic or static. A standard public I p is static by design.
03:29
We also have the option now here to select an availability zone,
03:32
we can either manually choose thehe veil ability to zone that we want to deploy the low balance or two. Or we can select his own redundant for a load balancer. That's just that it's gonna be redundant to any loss in a particular availabilities. Up
03:46
for the second this example, we're gonna go back to basic well, so like review create.
03:51
Once that validation passes, we'll go ahead and create that load balancer. Now that that load balancers created, we can go ahead and see more about the load balancer by clicking here on the load balancers, blade and clicking into the load balancer that we just created.
04:04
Now there are gonna be four things that are required for us to set up before our load balancers going to work. And that's gonna be the front and I P configuration, the backend pool, the health probe and the load balancing rule.
04:17
Before we get to that, I want to point out here real quickly that a load balancer is gonna function on Layer four of the O S I model. So it's going to be looking at TCP and UDP traffic to do its job.
04:28
Once we've deployed this load balancer, we do not have the ability to change the skew. So we've set this one is basic. We cannot change that to standard. So you need to know which of the Scuse you need before you're setting up in configuring the load balancer here in the azure.
04:44
Something else to consider is that the front end's in the back ends of the low balance or need to be within the same virtual network
04:51
and
04:54
load balancer Front End's cannot communicate across global virtual net piers. So we cannot set up a load balancer in one region and expect to communicate with resource is across a global virtual network appearing setup.
05:09
But now to finish configuration of this load, balancer here we're going to select into the front and blade, and we're gonna see that
05:15
the I P address has already been created here. Let's click down into here to see what this is all about.
05:19
We can see that this I p address has not been assigned to just yet.
05:24
And we can go ahead and select the I P address that we'd like to use here and save that to essentially marry our load balance or to the I p address that we would like to use. And this is the I. P address that we're going to use to communicate with the load balancer.
05:38
Let's go back a level here.
05:41
Now we need to configure our back and pool in the back end Pool is going to be the set of resource is that the load balancer is actually balancing traffic for?
05:49
So we can select, adhere,
05:51
have to name this and then I have to select the resource is that I'm gonna associate this back in pool with
05:58
I already have an availability set set up from a previous episode.
06:01
We're gonna go ahead and use that availability set.
06:04
Now I can see that I need to associate the network interfaces from this availability set with this load balancer. So I simply select adhere.
06:15
I'm gonna select my A V set 01 virtual machine
06:17
and in select that I p address of that network interface card that I like to use. And remember,
06:24
virtual machines can have multiple network interface cards. And I'm gonna do the same thing here for the second virtual machine in my availability set
06:32
and select that network interfaces. Well,
06:34
now I can go ahead and select, okay?
06:38
And what I've done is create the back and pool that this load balancer is going to be communicating with
06:43
moving along. I can go ahead and set up the health probe that's gonna be associated with this load balancer.
06:47
And this health probe is gonna communicate from the load balancer to the virtual machines that are in our setup currently. And as long as his virtual machines respond, then the load balancer knows these machines are online.
07:00
It's name is
07:01
we're gonna leave this a TCP. But since these air windows machines, we're gonna go ahead and use the health probe on poor 33 89. It's gonna check every five seconds and when two of these probes in a row fail the load balancers going to know that that particular virtual machine is off line.
07:16
And at that point, the load balancer will not pass traffic to that virtual machine any longer.
07:23
I'm gonna select, Okay, Now that our health probe is created, we can move on to the fourth and final step and configuring our load balancer. And that's setting up a load balancing rule. I can select, adhere in this blade and name this rule.
07:35
And for the most part, I can accept all of these defaults before our example. I'm gonna come down here and change the port to 33 89
07:45
and that's gonna be the front end port on the load balance or this listening for traffic. I'm also gonna change the back end poured for the back and pool to 33 89 as well.
07:55
And then we can see down here. The other option of reference or a relevance is gonna be the session persistence option.
08:01
What this is going to do is whenever a client of a particular I p communicates with the load balancer, the load balancer is going to maintain session state for that client, I p. And make sure that that client continues to talk with a specific resource on the inside of the load. Balancer.
08:18
This is gonna be particularly useful for things like shopping carts
08:22
or where state is going to matter across the connection.
08:26
You can also set this to client I, P and Protocol.
08:28
Then the other option here is the idle time out. So this session is going to be kept open without any communication for four minutes until the load balancer finally drops that session,
08:39
we're gonna leave all of these things as default.
08:41
I will mention, too, that this floating I p has to do with particular sequel workloads. But for our example here, it's not relevant. So I can act like, okay,
08:52
and that's configuring the last step of setting up our load balancer here in Azure.
08:56
One other thing, I'll point out why that deployment is finishing is the concept of an inbound Nat rule. Now I'm sure you're familiar with Nat Rules in your production life or even in your home network. And in that rule basically says when somebody tries to communicate with my i p address on a particular port. What am I going to do with air traffic?
09:13
So right now we're allowing traffic to port 33 89 on the public. I p of this load balancer
09:20
and the load balancer is gonna balance that traffic across our two virtual machines and our availability set.
09:26
But what happens is an administrator if I need to get to one of those particular servers to do maintenance on it from the public Internet
09:33
Right now, I don't have a way to do that. But through inbound that rule, I can set it up to where that's possible. So, for example, if I wanted to get to server number one, I could go ahead and go to 33 91 or any port of my choice. If I wanted to get the server to, I could go to port 33 92
09:52
all the art E p.
09:54
But it would go ahead and route me through to the server of my choosing instead of via the load balance or where I would just get whatever server I happened to get.
10:03
Now that we're all set up, we can come back out here to the overview tohave of our load balancer, and we can see the public I p address of our load balancer is right here.
10:13
Let's copy this.
10:13
And now I can go ahead and open remote desktop and navigate to the I p address of our load balancer and click Connect. And as soon as that log N v a r d p, except certificate, you can see that I'm connecting to one of my RTP servers in my availability set all via my load balancer.
10:33
So in today's episode, we talked about the concepts of using a load balancer both as a external or internal or a private or public load balancer.
10:41
We talked about incoming NAT rules, allowing us to set a particular port that allows us to get to a specific resource beyond the load balancer. As administrator,
10:52
we talked about the way that a load balancer works and the four necessary components that we have to set up the front and I p the rule health probe and the back and pool so that the load balancer works
11:03
and we also talked about maintaining session. State encased session is going to be important to be maintained through the load balancer as well. Coming up next, we're gonna talk about a similar concept to a load balancer. But that's gonna be traffic manager and traffic manager is a way for us, his administrators to
11:20
intelligently route where in the azure environment or even outside of the azure environment, our public Internet traffic ultimately terminates.
11:28
Thanks so much for joining me today, and I'm looking forward to the next episode.

Up Next

AZ-103 Microsoft Azure Administrator

This Microsoft Azure AZ-103 Certification training course teaches students to perform tasks like managing Azure subscriptions and resources, implementing and managing storage, deploying and managing virtual machines (VM) and networks, and managing identities!

Instructed By

Instructor Profile Image
Will Carlson
Director of IT and Cybersecurity
Senior Instructor