3.4 Load Balancing

Activity Overview: In this graded activity, students will learn how to create a publicly-accessible load-balancing solution in a cloud environment. Students will provision the resources necessary through Azure Portal, then configure them via PowerShell CLI (via Run Command) and Azure Portal.

Activity Outcomes: After completing this activity students will be able to:

  • Demonstrate configuration cloud-based network resources
  • Demonstrate configuration of a cloud-based load-balancer
  • Demonstrate web-hosting principles

Deliverable: Upload all requested screenshots below, as a .pdf export from the editor of your choosing.

Naming convention: “lastnamefirstinitial_Assignment#.pdf” e.g: “smithp_A1.1.pdf”

Be sure to include your name, student number, and course (CNW-2511) at the top of your document.

Load-Balancing in Azure

Part of the advantage in hosting an environment on a Cloud platform is the ease of access to resources from anywhere in the world. In order to leverage this advantage, organizations must provide publicly-accessible web content in a highly-available, scalable, yet cost-efficient manner. Technicians must be familiar with many of these deployment models, along with the various methods to implement them.

Load-Balancing is a necessary solution to maintain availability of publicly accessible resources. These configurations also allow for transparent “scale-out, scale-in” provisioning as the need for more back-end resources arises.

Follow this link to log in to the Azure Portal. Virtual Machines (and many other billed resources), must be disabled/deleted via the Azure dashboard to prevent continuous billing. Shutting down a VM within the OS will not disable them.

After you have completed this activity, you will delete all created resources, then verify with screenshots.

Do not create any resources unless you are specifically requested to. This runs a very high risk of your student account credits ($100 cap) being spent in their entirety, at which point you will no longer be able to access any of the resources required for this course, and future courses. Please contact your instructor ASAP if this occurs.

In this lab, you will be provisioning:

  • One (1) Resource Group
  • One (1) Virtual Network
  • One (1) Load-Balancer
  • One (1) Public IP
  • One (1) Network Security Group
  • Two (2) Virtual Machines

As you progress through this activity, your instructor may request that you capture a screenshot periodically (on Mac OS: “command+shift+3” to capture the whole screen, or “command+shift+4” then drag the cursor over the area you would like to capture). These screenshots are part of your required deliverable and will be graded.

Please attend or view Live Lecture (Week 3 Part 1) when available for the latest walkthrough. It is important to understand Cloud Service Provider (CSP) platforms change frequently, so the available recording here may look differently than what you see. You are welcome to use your best judgement to navigate any differences, or wait until the Live Lecture recording becomes available for further elaboration.

Provision Resources via Azure Portal


  1. Wherever you see “LNFI”, input your last name followed by your first initial (e.g. cnw-lb-LNFI = cnw-lb-smithp)
    1. Create a new Resource Group
      1. name: cnw-lb-LNFI
      2. location: westus3 (or any region that allows VM creation)
    2. Create a new Virtual Network
      1. name: cnw-LNFI
      2. resource-group: cnw-lb-LNFI
      3. address-prefixes: 10.0.0.0/24
      4. subnet-name: cnw-web
      5. subnet-prefix: 10.0.0.64/26
  2. Create a new Public IP named “lb-pip” – This must match the Standard SKU of your Load Balander
  3. Create a Load Balancer
    1. Name: cnw-lb
    2. Region: West US 3
    3. SKU: Standard
    4. Type: Public
    5. Tier: Regional
    6. Public IP Address: “lb-pip” (Use Existing) there may be an issue using a pre-created Public IP, in which case create a new public IP in this wizard.
    7. SKIP the rest of the configuration options during the creation of the Load Balancer, we will be configuring the items below after it has been provisioned.
  4. Configure Load Balancer Functions
    1. Create a new backend pool
      1. Name: cnw-VMbackend
    2. Create a new health probe
      1. Name: cnw-VMHP
      2. Protocol: TCP
      3. External / Frontend Port: 80
      4. Internal / Backend Port: 80
      5. Interval: 5 seconds
    3. Create a new load balancing rule
      1. Name: cnw-LB-http
      2. Backend Pool: cnw-VMbackend
      3. Frontend / External Port: 80
      4. Backend / Internal Port: 80
      5. Health Probe: cnw-VMHP
  5. Create a new Network Security Group
    1. Name: cnw-webNSG
    2. Location: West US 3 (or the region you’ve selected)
    3. Create a new Inbound Security Rule
      1. Source: Service Tag
      2. Source ST: Internet
      3. Source Ports: *
      4. Destination: Any
      5. Destination Port Ranges: 80
      6. Protocol: Any
      7. Action: Allow
      8. Priority: 100
      9. Name: inbound_allow
    4. Associate the NSG to the “cnw-web” Subnet
  6. Create Virtual Machines (2)
    1. VM 1 Name: web01 / VM 2 Name: web02
    2. Region: West US 3 (or the region in which you are working)
    3. Availability Options: None
    4. OS: Windows Server (any datacenter version, 2025 may not work)
    5. OS Disk Type: Standard SSD
    6. Use Managed Disks: Yes
    7. Virtual Network: cnw-LNFI
    8. Subnet: cnw-web
    9. Public IP: None – Important
    10. NIC NSG: None
    11. Place VM behind existing LB solution: Yes
    12. Options: Azure Load Balancer
    13. Load Balancer: cnw-lb-LNFI
    14. Backend Pool: cnw-VMbackend
    15. Management: All options OFF

Be sure to double-check the above VM settings on the “Review+Create” page, as provisioning certain VM configurations may change previously set ones.

Configure IIS via “Run Command”

It is possible to configure a virtual machine without the need for SSH or RDP, through Azure’s “Run Command” option within the Azure Portal. This is an extremely useful tool when a VM cannot be connected to while troubleshooting through normal remote means.

Complete the following steps on both of your provisioned VM’s:

  1. From the Azure Portal, select the VM
  2. Under “Operations” select “Run Command”
  3. Select “RunPowerShellScript”
  4. Copy and paste the following command string (all three lines):

Install-WindowsFeature -name Web-Server -IncludeManagementTools

remove-item C:inetpubwwwrootiisstart.htm

Add-Content -Path “C:inetpubwwwrootiisstart.htm” -Value $(“Hello World from ” + $env:computername)

This process will take a few minutes, but you can proceed to the second VM in another tab while the first script runs. You will need screenshots of the output for both VM’s once the commands are successful.

Verify HTTP Connectivity and Load-Balancing

  1. Navigate to your Load Balancer’s Overview page and copy the front-end public IP
  2. Open your browser and paste the public IP to access the load-balanced website
  3. Check to see which VM is posting the webpage by the name displayed
  4. Reload the website a few times to see if the VM name changes (this may take quite a few reloads). It’s possible that your browser cached the first page to load, and reloading will not show the other VM’s website.
  5. If the page isn’t alternating, go to your Virtual Machines and select “Stop” on the VM that is showing up when you access the website.
  6. Once the VM is fully stopped, reload the website and you should see the other VM’s name.
  7. To force this on the other VM, simply swap which VM is “On”

Required Screenshots

Take your screenshots after all configurations and lab steps have been completed.

The following screenshots should show the configurations identified in lab:

  1. Virtual Machines
    1. Overview for cnw-LNFI-web01
    2. Overview for cnw-LNFI-web02
  2. Virtual Networks
    1. Diagram for cnw-lb-LNFI
  3. Network Security Groups
    1. Inbound Security Rules
    2. Subnets
  4. Load Balancers
    1. Overview
    2. Backend Pools (with the list expanded to show both VM’s)
    3. Load Balancing Rules
  5. Screenshot of web browser accessing:
    1. cnw-LNFI-web01
    2. cnw-LNFI-web02
  6. All Resources
    1. Showing all provisioned resources for this lab deleted

There should be 11 individual screenshots.

Requirements:

Calculate the price of your order

Select your paper details and see how much our professional writing services will cost.

We`ll send you the first draft for approval by at
Price: $36
  • Freebies
  • Format
  • Formatting (MLA, APA, Chicago, custom, etc.)
  • Title page & bibliography
  • 24/7 customer support
  • Amendments to your paper when they are needed
  • Chat with your writer
  • 275 word/double-spaced page
  • 12 point Arial/Times New Roman
  • Double, single, and custom spacing
  • We care about originality

    Our custom human-written papers from top essay writers are always free from plagiarism.

  • We protect your privacy

    Your data and payment info stay secured every time you get our help from an essay writer.

  • You control your money

    Your money is safe with us. If your plans change, you can get it sent back to your card.

How it works

  1. 1
    You give us the details
    Complete a brief order form to tell us what kind of paper you need.
  2. 2
    We find you a top writer
    One of the best experts in your discipline starts working on your essay.
  3. 3
    You get the paper done
    Enjoy writing that meets your demands and high academic standards!

Samples from our advanced writers

Check out some essay pieces from our best essay writers before your place an order. They will help you better understand what our service can do for you.

  • Essay (any type)
    Direct Social Work Practice and Helping Process
    Undergrad. (yrs 3-4)
    Social Work and Human Services
    APA

Get your own paper from top experts

Order now

Perks of our essay writing service

We offer more than just hand-crafted papers customized for you. Here are more of our greatest perks.

  • Swift delivery
    Our writing service can deliver your short and urgent papers in just 4 hours!
  • Professional touch
    We find you a pro writer who knows all the ins and outs of your subject.
  • Easy order placing/tracking
    Create a new order and check on its progress at any time in your dashboard.
  • Help with any kind of paper
    Need a PhD thesis, research project, or a two-page essay? For you, we can do it all.
  • Experts in 80+ subjects
    Our pro writers can help you with anything, from nursing to business studies.
  • Calculations and code
    We also do math, write code, and solve problems in 30+ STEM disciplines.

Frequently asked questions

Get instant answers to the questions that students ask most often.

See full FAQ
  • How do you find the best essay writer for me?

    Our professional writing service focuses on giving you the right specialist so the one assigned will have the knowledge about the right topic. However, if you’ve used our essay service before, you can ask us to assign you the expert writer who used to complete papers for you in the past. We can easily do so if the specialist in question is available at the moment.

    If you’re ordering from our essay writing service for the first time, we will assign you a suitable expert ourselves and ensure that your academic essay writer is a pro. Moreover, let us know how complex your assignment is so that we can find the best match for your order.

    We’ve hired the best writers in 80+ academic subjects to complete any paper you need. As soon as we hear, “Write my essays,” our support team assigns you the writer who understands your needs and subject.

    In case you need to make sure we’ve picked a great specialist to deal with your paper, you can chat with the expert writers directly. We do our best to make sure you’re happy with the writer we’ve selected for you.

  • How can you prove that your paper writing service is not a scam?

    We have been selling original essays for more than 15 years. To prove that we are a trustworthy custom essay writing company, we provide quick delivery and a money-back guarantee. If we can’t complete your paper for any reason, we’ll send your money back to the credit card. We want to deliver the finest services, so you can decide if the paper is good enough; from our side, we’ll edit it according to your primary requirements to make the writing perfect. Our online paper writing service is about both giving you the materials you need when you need them and ensuring that your private data is safe. Check out our guarantees to see how we control the quality of your assignment and protect you as a customer.

See full FAQ

Take your studies to the next level with our experienced specialists