Skip to content

Explore Azure LoadBalancer πŸ›‘οΈ and optimize your network's efficiency! πŸ’» Dive into seamless load balancing βš–οΈ with Azure's powerful tools. πŸš€

Notifications You must be signed in to change notification settings

Mouhamed-dridi/azure-load-balancer-public

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 

Repository files navigation

Azure-Load-Balancer-Public

Explore Azure LoadBalancer πŸ›‘οΈ and optimize your network's efficiency! πŸ’» Dive into seamless load balancing βš–οΈ with Azure's powerful tools. πŸš€

Project Setup Steps:

  1. Create Resource Group for this Project
  2. Create VNet Network
  3. Create 2 VMs (Ubuntu) and Install Apache 2 to Test Website
  4. Create a Public LoadBalancer

Create Resource Group for this Project

az group create --name loadbalancer-rg --location <location>

Create Virtual Network

az network vnet create --name myVNet --resource-group loadbalancer-rg --location westeurope --address-prefixes 10.103.0.0/16

Create Subnet

az network vnet subnet create --name subnet-lb --resource-group loadbalancer-rg --vnet-name myVNet --address-prefixes 10.103.0.0/24

Create 2 VMs (Ubuntu) and Install Apache 2 to Test Website For this lab, we'll temporarily assign public IPs to the VMs so they can access the internet for tasks like installing Apache or cloning GitHub repositories. After setup, you can remove these public IPs for better security and rely on private IPs for internal communication.

How connect vms loacly with ssh If VMs are created using only private IPs, they can still be accessed locally within the other virtual network. This allows for secure communication without exposure to the public internet

Load Balancer Setup Steps:

  1. Create Load Balancer (Public)

    • Resource Group: loadbalancer-rg

    • Virtual Network: vnet

      image

  2. Create Public IP

  • Create a new public IP for the load balancer.

image

  1. Configure VMs as Backend Pool

    • Associate the VMs as backend targets for the load balancer. image
  2. Set Up Health Check

    • Define health probes to monitor the health of the backend VMs. image
  3. Create Load Balancer Rules

    • Configure load balancing rules to distribute incoming traffic among the backend VMs. image
  4. Befor test

  • its recommande to allow the http and https image

    1. Befor test
      • for testing use the public ip of the loadbalincer just put ip bulic in brwoser and can use also private browser image

About

Explore Azure LoadBalancer πŸ›‘οΈ and optimize your network's efficiency! πŸ’» Dive into seamless load balancing βš–οΈ with Azure's powerful tools. πŸš€

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published