{"id":2188,"date":"2022-02-06T10:17:24","date_gmt":"2022-02-06T10:17:24","guid":{"rendered":"https:\/\/exceedthecloud.com\/?p=2188"},"modified":"2022-02-11T11:04:15","modified_gmt":"2022-02-11T11:04:15","slug":"create-and-configure-an-azure-load-balancer","status":"publish","type":"post","link":"https:\/\/exceedthecloud.com\/?p=2188","title":{"rendered":"Create and configure an Azure load balancer"},"content":{"rendered":"\n<p>In this lab, you will create an internal load balancer for the fictional Exceedlabs Ltd organization.<\/p>\n\n\n\n<p>The steps to create an internal load balancer, are very similar to those you have already learned about in this module, to create a public load balancer. The key difference is that with a public load balancer the front end is accessed via a public IP address, and you test connectivity from a host which is located outside your virtual network; whereas, with an internal load balancer, the front end is a private IP address inside your virtual network, and you test connectivity from a host inside the same network.<\/p>\n\n\n\n<p>The diagram below illustrates the environment you will be deploying in this lab.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"801\" height=\"503\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img1-12.png\" alt=\"\" class=\"wp-image-2189\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img1-12.png 801w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img1-12-300x188.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img1-12-768x482.png 768w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img1-12-80x50.png 80w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/><\/figure>\n\n\n\n<p>In this lab, you will:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Task 1: Create the virtual network<\/li><li>Task 2: Create backend servers<\/li><li>Task 3: Create the load balancer<\/li><li>Task 4: Create load balancer resources<\/li><li>Task 5: Test the load balancer<\/li><\/ul>\n\n\n\n<p>Prerequisites for this labs :&nbsp;<a href=\"https:\/\/azure.microsoft.com\/en-us\/free\/\" target=\"_blank\" rel=\"noreferrer noopener\">Azure Account<\/a>&nbsp;\/&nbsp;<a href=\"https:\/\/github.com\/marcelin-ndjila\/Practical-Labs-Series\/blob\/master\/Azurelabs04.zip\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"https:\/\/github.com\/marcelin-ndjila\/Practical-Labs-Series\/blob\/master\/Azurelabs05.zip\">Download Labs Files here<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Task 1: Create the virtual network<\/strong><\/p>\n\n\n\n<p>In this section, you will create a virtual network and a subnet.<\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Log in to the Azure portal.<\/li><\/ul>\n\n\n\n<p>On the Azure portal home page, navigate to the Global Search bar and search <strong>Virtual Networks<\/strong> and select virtual networks under services.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1005\" height=\"317\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img2-12.png\" alt=\"\" class=\"wp-image-2190\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img2-12.png 1005w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img2-12-300x95.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img2-12-768x242.png 768w\" sizes=\"auto, (max-width: 1005px) 100vw, 1005px\" \/><\/figure>\n\n\n\n<p>Select <strong>Create<\/strong> on the Virtual networks page.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"744\" height=\"463\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img3-11.png\" alt=\"\" class=\"wp-image-2191\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img3-11.png 744w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img3-11-300x187.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img3-11-80x50.png 80w\" sizes=\"auto, (max-width: 744px) 100vw, 744px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the <strong>Basics<\/strong> tab, use the information in the table below to create the virtual network.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Setting<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><\/thead><tbody><tr><td>Subscription<\/td><td>Select your subscription<\/td><\/tr><tr><td>Resource group<\/td><td>Select <strong>Create new<\/strong> Name: <strong>Int-exceedlabs-LB-RG<\/strong><\/td><\/tr><tr><td>Name<\/td><td><strong>Int-exceedlabs-LB-VNet<\/strong><\/td><\/tr><tr><td>Region<\/td><td><strong>(US) East US<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\" start=\"2\"><li>Click <strong>Next : IP Addresses<\/strong>.<\/li><li>On the <strong>IP Addresses<\/strong> tab, in the <strong>IPv4 address space<\/strong> box, remove the default and type <strong>10.1.0.0\/16<\/strong>.<\/li><li>On the <strong>IP Addresses<\/strong> tab, select <strong>+ Add subnet<\/strong>.<\/li><li>In the <strong>Add subnet<\/strong> pane, provide a subnet name of <strong>exceedlabsBackendSubnet<\/strong>, and a subnet address range of <strong>10.1.0.0\/24<\/strong>.<\/li><li>Click <strong>Add<\/strong>.<\/li><li>Click <strong>Add subnet<\/strong>, provide a subnet name of <strong>exceedlabsFrontEndSubnet<\/strong>, and a subnet address range of <strong>10.1.2.0\/24<\/strong>. Click <strong>Add<\/strong><\/li><li>Click <strong>Next : Security<\/strong>.<\/li><li>Under <strong>BastionHost<\/strong> select <strong>Enable<\/strong>, then enter the information from the table below.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Setting<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><\/thead><tbody><tr><td>Bastion name<\/td><td><strong>exceedlabsBastionHost<\/strong><\/td><\/tr><tr><td>AzureBastionSubnet address space<\/td><td><strong>10.1.1.0\/24<\/strong><\/td><\/tr><tr><td>Public IP address<\/td><td>Select <strong>Create new<\/strong> Name: <strong>exceedlabsBastionIP<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\" start=\"10\"><li>Click <strong>Review + create<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"842\" height=\"531\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img4-11.png\" alt=\"\" class=\"wp-image-2192\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img4-11.png 842w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img4-11-300x189.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img4-11-768x484.png 768w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img4-11-80x50.png 80w\" sizes=\"auto, (max-width: 842px) 100vw, 842px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Click <strong>Create<\/strong>.<\/li><\/ul>\n\n\n\n<p><strong>Task 2: Create backend servers<\/strong><\/p>\n\n\n\n<p>In this section, you will create three VMs, that will be in the same availability set, for the backend pool of the load balancer, add the VMs to the backend pool, and then install IIS on the three VMs to test the load balancer.<\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>In the Azure portal, open the <strong>PowerShell<\/strong> session within the <strong>Cloud Shell<\/strong> pane.<\/li><li>In the toolbar of the Cloud Shell pane, click the Upload\/Download files icon, in the drop-down menu, click Upload and upload the following files azuredeploy.json, azuredeploy.parameters.vm1.json, azuredeploy.parameters.vm2.json and azuredeploy.parameters.vm3.json into the Cloud Shell home directory.<\/li><li>Deploy the following ARM templates to create the virtual network, subnets, and VMs needed for this exercise:<\/li><\/ul>\n\n\n\n<p>code<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$RGName = \"Int-exceedlabs-LB-RG\"\n   \nNew-AzResourceGroupDeployment -ResourceGroupName $RGName -TemplateFile azuredeploy.json -TemplateParameterFile azuredeploy.parameters.vm1.json\n\nNew-AzResourceGroupDeployment -ResourceGroupName $RGName -TemplateFile azuredeploy.json -TemplateParameterFile azuredeploy.parameters.vm2.json\n\nNew-AzResourceGroupDeployment -ResourceGroupName $RGName -TemplateFile azuredeploy.json -TemplateParameterFile azuredeploy.parameters.vm3.json\n<\/code><\/pre>\n\n\n\n<p><strong>Task 3: Create the load balancer<\/strong><\/p>\n\n\n\n<p>In this section, you will create an internal Standard SKU load balancer. The reason we are creating a Standard SKU load balancer here in the exercise, instead of a Basic SKU load balance, is for later exercises that require a Standard SKU version of the load balancer.<\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the Azure portal home page, click <strong>Create a resource<\/strong>.<\/li><li>In the search box at the top of the page, type <strong>Load Balancer<\/strong>, then press <strong>Enter<\/strong> (<strong>Note:<\/strong> do not select one from the list).<\/li><li>On the results page, locate and select <strong>Load Balancer<\/strong> (the one that says \u2018Microsoft\u2019 and \u2018Azure Service\u2019 under the name).<\/li><\/ul>\n\n\n\n<p>Click <strong>Create<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"526\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img5-11-1024x526.png\" alt=\"\" class=\"wp-image-2193\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img5-11-1024x526.png 1024w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img5-11-300x154.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img5-11-768x395.png 768w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img5-11.png 1051w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the <strong>Basics<\/strong> tab, use the information in the table below to create the load balancer.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Setting<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><\/thead><tbody><tr><td>Subscription<\/td><td>Select your subscription<\/td><\/tr><tr><td>Resource group<\/td><td><strong>Int-exceedlabs-LB-RG<\/strong><\/td><\/tr><tr><td>Name<\/td><td><strong>exceedlabsIntLoadBalancer<\/strong><\/td><\/tr><tr><td>Region<\/td><td><strong>(US) East US<\/strong><\/td><\/tr><tr><td>Type<\/td><td><strong>Internal<\/strong><\/td><\/tr><tr><td>SKU<\/td><td><strong>Standard<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\" start=\"2\"><li>Click <strong>Next: Frontend IP configurations<\/strong>.<\/li><li>Click Add a frontend IP<\/li><li>On the <strong>Add frontend IP address<\/strong> blade, enter the information from the table below.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Setting<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><\/thead><tbody><tr><td>Name<\/td><td><strong>LoadBalancerFrontEnd<\/strong><\/td><\/tr><tr><td>Virtual network<\/td><td><strong>Int-exceedlabs-LB-VNet<\/strong><\/td><\/tr><tr><td>Subnet<\/td><td><strong>exceedlabsFrontEndSubnet<\/strong><\/td><\/tr><tr><td>Assignment<\/td><td><strong>Dynamic<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\" start=\"5\"><li>Click <strong>Review + create<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"868\" height=\"514\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img6-10.png\" alt=\"\" class=\"wp-image-2194\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img6-10.png 868w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img6-10-300x178.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img6-10-768x455.png 768w\" sizes=\"auto, (max-width: 868px) 100vw, 868px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Click <strong>Create<\/strong>.<\/li><\/ul>\n\n\n\n<p><strong>Task 4: Create load balancer resources<\/strong><\/p>\n\n\n\n<p>In this section, you will configure load balancer settings for a backend address pool, then create a health probe and a load balancer rule.<\/p>\n\n\n\n<p><strong>Create a backend pool and add VMs to the backend pool<\/strong><\/p>\n\n\n\n<p>The backend address pool contains the IP addresses of the virtual NICs connected to the load balancer.<\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the Azure portal home page, click <strong>All resources<\/strong>, then click on <strong>exceedlabsIntLoadBalancer<\/strong> from the resources list.<\/li><li>Under <strong>Settings<\/strong>, select <strong>Backend pools<\/strong>, and then click <strong>Add<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1022\" height=\"289\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img7-10.png\" alt=\"\" class=\"wp-image-2195\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img7-10.png 1022w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img7-10-300x85.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img7-10-768x217.png 768w\" sizes=\"auto, (max-width: 1022px) 100vw, 1022px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the <strong>Add backend pool<\/strong> page, enter the information from the table below.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Setting<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><\/thead><tbody><tr><td>Name<\/td><td><strong>exceedlabsBackendPool<\/strong><\/td><\/tr><tr><td>Virtual network<\/td><td><strong>Int-exceedlabs-LB-VNet<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\" start=\"2\"><li>Under <strong>Virtual machines<\/strong>, click <strong>Add<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"938\" height=\"489\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img8-10.png\" alt=\"\" class=\"wp-image-2196\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img8-10.png 938w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img8-10-300x156.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img8-10-768x400.png 768w\" sizes=\"auto, (max-width: 938px) 100vw, 938px\" \/><\/figure>\n\n\n\n<p>Select the checkboxes for all 3 VMs (<strong>exceedlabsVM1<\/strong>, <strong>exceedlabsVM2<\/strong>, and <strong>exceedlabsVM3<\/strong>), then click <strong>Add<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"519\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img9-10-1024x519.png\" alt=\"\" class=\"wp-image-2197\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img9-10-1024x519.png 1024w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img9-10-300x152.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img9-10-768x390.png 768w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img9-10.png 1106w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Click <strong>Add<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"417\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img10-10-1024x417.png\" alt=\"\" class=\"wp-image-2198\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img10-10-1024x417.png 1024w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img10-10-300x122.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img10-10-768x313.png 768w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img10-10.png 1302w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Create a health probe<\/strong><\/p>\n\n\n\n<p>The load balancer monitors the status of your app with a health probe. The health probe adds or removes VMs from the load balancer based on their response to health checks. Here you will create a health probe to monitor the health of the VMs.<\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Under <strong>Settings<\/strong>, click <strong>Health probes<\/strong>, then click <strong>Add<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"314\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img11-9-1024x314.png\" alt=\"\" class=\"wp-image-2199\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img11-9-1024x314.png 1024w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img11-9-300x92.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img11-9-768x236.png 768w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img11-9.png 1291w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the <strong>Add health probe<\/strong> page, enter the information from the table below.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Setting<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><\/thead><tbody><tr><td>Name<\/td><td><strong>exceedlabsHealthProbe<\/strong><\/td><\/tr><tr><td>Protocol<\/td><td><strong>HTTP<\/strong><\/td><\/tr><tr><td>Port<\/td><td><strong>80<\/strong><\/td><\/tr><tr><td>Path<\/td><td><strong>\/<\/strong><\/td><\/tr><tr><td>Interval<\/td><td><strong>15<\/strong><\/td><\/tr><tr><td>Unhealthy threshold<\/td><td><strong>2<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"929\" height=\"511\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img12-9.png\" alt=\"\" class=\"wp-image-2200\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img12-9.png 929w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img12-9-300x165.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img12-9-768x422.png 768w\" sizes=\"auto, (max-width: 929px) 100vw, 929px\" \/><\/figure>\n\n\n\n<p>Click <strong>Add<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"416\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img13-9-1024x416.png\" alt=\"\" class=\"wp-image-2201\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img13-9-1024x416.png 1024w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img13-9-300x122.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img13-9-768x312.png 768w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img13-9.png 1293w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Create a load balancer rule<\/strong><\/p>\n\n\n\n<p>A load balancer rule is used to define how traffic is distributed to the VMs. You define the frontend IP configuration for the incoming traffic and the backend IP pool to receive the traffic. The source and destination port are defined in the rule. Here you will create a load balancer rule.<\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>From the <strong>Backend pools<\/strong> page of your load balancer, under <strong>Settings<\/strong>, click <strong>Load balancing rules<\/strong>, then click <strong>Add<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"413\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img14-10-1024x413.png\" alt=\"\" class=\"wp-image-2202\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img14-10-1024x413.png 1024w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img14-10-300x121.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img14-10-768x310.png 768w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img14-10.png 1286w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the <strong>Add load balancing rule<\/strong> page, enter the information from the table below.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Setting<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><\/thead><tbody><tr><td>Name<\/td><td><strong>exceedlabsHTTPRule<\/strong><\/td><\/tr><tr><td>IP Version<\/td><td><strong>IPv4<\/strong><\/td><\/tr><tr><td>Frontend IP address<\/td><td><strong>LoadBalancerFrontEnd<\/strong><\/td><\/tr><tr><td>Protocol<\/td><td><strong>TCP<\/strong><\/td><\/tr><tr><td>Port<\/td><td><strong>80<\/strong><\/td><\/tr><tr><td>Backend port<\/td><td><strong>80<\/strong><\/td><\/tr><tr><td>Backend pool<\/td><td><strong>exceedlabsBackendPool<\/strong><\/td><\/tr><tr><td>Health probe<\/td><td><strong>exceedlabsHealthProbe<\/strong><\/td><\/tr><tr><td>Session persistence<\/td><td><strong>None<\/strong><\/td><\/tr><tr><td>Idle timeout (minutes)<\/td><td><strong>15<\/strong><\/td><\/tr><tr><td>Floating IP<\/td><td><strong>Disabled<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\" start=\"2\"><li>Click <strong>Add<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"939\" height=\"517\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img15-9.png\" alt=\"\" class=\"wp-image-2203\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img15-9.png 939w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img15-9-300x165.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img15-9-768x423.png 768w\" sizes=\"auto, (max-width: 939px) 100vw, 939px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"428\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img16-9-1024x428.png\" alt=\"\" class=\"wp-image-2204\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img16-9-1024x428.png 1024w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img16-9-300x125.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img16-9-768x321.png 768w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img16-9.png 1294w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Task 5: Test the load balancer<\/strong><\/p>\n\n\n\n<p>In this section, you will create a test VM, and then test the load balancer.<\/p>\n\n\n\n<p><strong>Create test VM<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the Azure portal home page, click <strong>Create a resource<\/strong>, then <strong>Compute<\/strong>, then select <strong>Virtual machine<\/strong> (if this resource type is not listed on the page, use the search box at the top of the page to search for it and select it).<\/li><li>On the <strong>Create a virtual machine<\/strong> page, on the <strong>Basics<\/strong> tab, use the information in the table below to create the first VM.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Setting<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><\/thead><tbody><tr><td>Subscription<\/td><td>Select your subscription<\/td><\/tr><tr><td>Resource group<\/td><td><strong>Int-exceedlabs-LB-RG<\/strong><\/td><\/tr><tr><td>Virtual machine name<\/td><td><strong>exceedlabsTestVM<\/strong><\/td><\/tr><tr><td>Region<\/td><td><strong>(US) East US<\/strong><\/td><\/tr><tr><td>Availability options<\/td><td><strong>No infrastructure redundancy required<\/strong><\/td><\/tr><tr><td>Image<\/td><td><strong>Windows Server 2019 Datacenter &#8211; Gen 1<\/strong><\/td><\/tr><tr><td>Size<\/td><td><strong>Standard_DS2_v3 &#8211; 2 vcpu, 8 GiB memory<\/strong><\/td><\/tr><tr><td>Username<\/td><td><strong>TestUser<\/strong><\/td><\/tr><tr><td>Password<\/td><td><strong>TestPa$$w0rd!<\/strong><\/td><\/tr><tr><td>Confirm password<\/td><td><strong>TestPa$$w0rd!<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\" start=\"3\"><li>Click <strong>Next : Disks<\/strong>, then click <strong>Next : Networking<\/strong>.<\/li><li>On the <strong>Networking<\/strong> tab, use the information in the table below to configure networking settings.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Setting<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><\/thead><tbody><tr><td>Virtual network<\/td><td><strong>Int-exceedlabs-LB-VNet<\/strong><\/td><\/tr><tr><td>Subnet<\/td><td><strong>exceedlabsBackendSubnet<\/strong><\/td><\/tr><tr><td>Public IP<\/td><td>Change to <strong>None<\/strong><\/td><\/tr><tr><td>NIC network security group<\/td><td><strong>Advanced<\/strong><\/td><\/tr><tr><td>Configure network security group<\/td><td>Select the existing <strong>exceedlabsNSG<\/strong><\/td><\/tr><tr><td>Place this virtual machine behind an existing load balancing solution?<\/td><td><strong>Off<\/strong> (unchecked)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\" start=\"5\"><li>Click <strong>Review + create<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"994\" height=\"524\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img17-9.png\" alt=\"\" class=\"wp-image-2205\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img17-9.png 994w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img17-9-300x158.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img17-9-768x405.png 768w\" sizes=\"auto, (max-width: 994px) 100vw, 994px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Click <strong>Create<\/strong>.<\/li><li>Wait for this last VM to be deployed before moving forward with the next task.<\/li><\/ul>\n\n\n\n<p><strong>Connect to the test VM to test the load balancer<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the Azure portal home page, click <strong>All resources<\/strong>, then click on <strong>exceedlabsIntLoadBalancer<\/strong> from the resources list.<\/li><li>On the <strong>Overview<\/strong> page, make a note of the <strong>Private IP address<\/strong>, or copy it to the clipboard. Note: you may need to select <strong>See more<\/strong> in order to see the <strong>Private IP address<\/strong> field.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"408\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img18-8-1024x408.png\" alt=\"\" class=\"wp-image-2206\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img18-8-1024x408.png 1024w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img18-8-300x119.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img18-8-768x306.png 768w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img18-8.png 1299w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Click <strong>Home<\/strong>, then on the Azure portal home page, click <strong>All resources<\/strong>, then click on the <strong>exceedlabsTestVM<\/strong> virtual machine that you just created.<\/li><li>On the <strong>Overview<\/strong> page, select <strong>Connect<\/strong>, then <strong>Bastion<\/strong>.<\/li><li>Click <strong>Use Bastion<\/strong>.<\/li><li>In the <strong>Username<\/strong> box, type <strong>TestUser<\/strong> and in the <strong>Password<\/strong> box, type <strong>TestPa$$w0rd!<\/strong>, then click <strong>Connect<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"545\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img19-8-1024x545.png\" alt=\"\" class=\"wp-image-2207\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img19-8-1024x545.png 1024w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img19-8-300x160.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img19-8-768x408.png 768w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img19-8.png 1068w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>The <strong>exceedlabsTestVM<\/strong> window will open in another browser tab.<\/li><li>If a <strong>Networks<\/strong> pane appears, click <strong>Yes<\/strong>.<\/li><li>Click the <strong>Internet Explorer<\/strong> icon in the task bar to open the web browser.<\/li><li>Click <strong>OK<\/strong> on the <strong>Set up Internet Explorer 11<\/strong> dialog box.<\/li><li>Enter (or paste) the <strong>Private IP address<\/strong> (e.g. 10.1.2.4) from the previous step into the address bar of the browser and press Enter.<\/li><li>The default web home page of the IIS Web server is displayed in the browser window. One of the three virtual machines in the backend pool will respond.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"892\" height=\"394\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img20-8.png\" alt=\"\" class=\"wp-image-2208\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img20-8.png 892w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img20-8-300x133.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img20-8-768x339.png 768w\" sizes=\"auto, (max-width: 892px) 100vw, 892px\" \/><\/figure>\n\n\n\n<p>If you click the refresh button in the browser a few times, you will see that the response comes randomly from the different VMs in the backend pool of the internal load balancer.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"898\" height=\"400\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img21-8.png\" alt=\"\" class=\"wp-image-2209\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img21-8.png 898w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img21-8-300x134.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img21-8-768x342.png 768w\" sizes=\"auto, (max-width: 898px) 100vw, 898px\" \/><\/figure>\n\n\n\n<p><mark class=\"kt-highlight\"><strong>Reminder<\/strong>: Don\u2019t forget to delete or shutdown all unused Azure resources after your labs for cost saving<\/mark><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this lab, you will create an internal load balancer for the fictional Exceedlabs Ltd organization. The steps to create an internal load balancer, are very similar to those you have already learned about in this module, to create a &hellip; <a href=\"https:\/\/exceedthecloud.com\/?p=2188\">Continued<\/a><\/p>\n","protected":false},"author":1,"featured_media":2212,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"kt_blocks_editor_width":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[17,4],"tags":[28,29],"class_list":["post-2188","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-networking","category-practical-labs-series","tag-azure-network","tag-load-balancer"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/load-balancer.jpeg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/posts\/2188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2188"}],"version-history":[{"count":6,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/posts\/2188\/revisions"}],"predecessor-version":[{"id":2323,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/posts\/2188\/revisions\/2323"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/media\/2212"}],"wp:attachment":[{"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}