Quickstart: Create a public load balancer to load balance VMs using the Azure portal-Test Connection

Опубликовано: 03 Октябрь 2024
на канале: Cloud Security Training & Consulting
540
7

Quickstart: Create a public load balancer to load balance VMs using the Azure portal-Test Connection


Create load balancer resources

Configure:

Create a virtual network.
Load balancer settings for a backend address pool.
A health probe.
A load balancer rule.




Create backend servers

Create three virtual machines for the backend pool of the load balancer.
Create an availability set for the virtual machines.
Install IIS on the virtual machines to test the load balancer.



General Steps:

1. Create a load blancer basic + use static IP
2. Create an Availability Set
3. Deploy 2 VMs and use the availability set while deploying
4. Install IIS for the Windows VMs
5. Configure NSG to allow port 80
6. Configure backend pool of the loadbalancer, add VMs
7. Create Health Probe
8. Create Load Balancing Rule




More resources:
Install IIS:

Install-WindowsFeature -name Web-Server -IncludeManagementTools



Curl command to check for load balance rule:
for i in {1..6}; do curl 13.68.243.119; done



QuickStart:

https://docs.microsoft.com/en-us/azur...