Skip to content

Latest commit

 

History

History
77 lines (63 loc) · 3.36 KB

load-balancer-create-virtual-machine-zonal.md

File metadata and controls

77 lines (63 loc) · 3.36 KB
title description services author ms.service ms.topic ms.date ms.author ms.custom
include file
include file
load-balancer
mbender-ms
azure-load-balancer
include
12/05/2023
mbender
include file

Create virtual machines

In this section, you create two VMs (lb-vm1 and lb-VM2) in a single zone (Zone 1).

These VMs are added to the backend pool of the load balancer that was created earlier.

  1. In the search box at the top of the portal, enter Virtual machine. Select Virtual machines in the search results.

  2. In Virtual machines, select + Create > Azure virtual machine.

  3. In Create a virtual machine, enter or select the following values in the Basics tab:

    Setting Value
    Project Details
    Subscription Select your Azure subscription
    Resource Group Select load-balancer-rg
    Instance details
    Virtual machine name Enter lb-VM1
    Region Select ((US) East US)
    Availability Options Select Availability zones
    Availability zone Select Zone 1
    Security type Select Standard.
    Image Select Windows Server 2022 Datacenter: Azure Edition - Gen2
    Azure Spot instance Leave the default of unchecked.
    Size Choose VM size or take default setting
    Administrator account
    Username Enter a username
    Password Enter a password
    Confirm password Reenter password
    Inbound port rules
    Public inbound ports Select None
  4. Select the Networking tab, or select Next: Disks, then Next: Networking.

  5. In the Networking tab, select or enter the following information:

    Setting Value
    Network interface
    Virtual network Select lb-vnet
    Subnet Select backend-subnet
    Public IP Select None.
    NIC network security group Select Advanced
    Configure network security group Skip this setting until the rest of the settings are completed. Complete after Select a backend pool.
    Delete NIC when VM is deleted Leave the default of unselected.
    Accelerated networking Leave the default of selected.
    Load balancing
    Load balancing options
    Load-balancing options Select Azure load balancer
    Select a load balancer Select load-balancer
    Select a backend pool Select lb-backend-pool
    Configure network security group Select Create new.
    In the Create network security group, enter lb-NSG in Name.
    Under Inbound rules, select +Add an inbound rule.
    In Service, select HTTP.
    Under Priority, enter 100.
    In Name, enter lb-NSG-Rule
    Select Add
    Select OK
  6. Select Review + create.

  7. Review the settings, and then select Create.

  8. Follow the steps 1 through 7 to create another VM with the following values and all the other settings the same as lb-VM1:

    Setting VM 2
    Name lb-VM2
    Availability zone Zone 1
    Network security group Select the existing lb-NSG