Lab23 - Understanding Availability set and Load balancer - Azure
Lab23 - Understanding Availability set and Load balancer - Azure
An Availability Set is a logical grouping capability that you can use in Azure
to ensure that the VM resources you place within it are isolated from each
other when they are deployed within an Azure datacenter. Azure ensures
that the VMs you place within an Availability Set run across multiple physical
servers, compute racks, storage units, and network switches. If a hardware
or Azure software failure occurs, only a subset of your VMs are impacted, and
your overall application stays up and continues to be available to your
customers. Availability Sets are an essential capability when you want to
build reliable cloud solutions.
Let’s consider a typical VM-based solution where you might have four front-
end web servers and 2 back-end VMs. With Azure, you’d want to define two
availability sets before you deploy your VMs: one availability set for the web
tier and one availability set for the back tier. When you create a new VM you
can then specify the availability set as a parameter to the az vm create
command, and Azure automatically ensures that the VMs you create within
the available set are isolated across multiple physical hardware resources. If
the physical hardware that one of your Web Server or back-end VMs is
running on has a problem, you know that the other instances of your Web
Server and back-end VMs remain running because they are on different
hardware.
Use Availability Sets when you want to deploy reliable VM-based solutions in
Azure.
Load Balancer
With Azure Load Balancer, you can scale your applications and create high
availability for your services. Load Balancer supports inbound and outbound
scenarios, provides low latency and high throughput, and scales up to
millions of flows for all TCP and UDP applications.
Load Balancer distributes new inbound flows that arrive on the Load
Balancer's frontend to backend pool instances, according to rules and health
probes.
Page 1 of 164
Cloud Computing - Azure
Azure Load Balancer is available in two SKUs: Basic and Standard. There are
differences in scale, features, and pricing. Any scenario that's possible with
Basic Load Balancer can also be created with Standard Load Balancer,
although the approaches might differ slightly. As you learn about Load
Balancer, it is important to familiarize yourself with the fundamentals and
SKU-specific differences.
Why use Load Balancer?
You can use Azure Load Balancer to:
Note
Page 2 of 164
Cloud Computing - Azure
Topology:
Page 3 of 164
Cloud Computing - Azure
Page 4 of 164
Cloud Computing - Azure
Click “Add”.
Page 5 of 164
Cloud Computing - Azure
Click “Create”.
Page 6 of 164
Cloud Computing - Azure
Page 7 of 164
Cloud Computing - Azure
In “All services”,
Page 8 of 164
Cloud Computing - Azure
In “Availability sets”,
Click “Add”.
Page 9 of 164
Cloud Computing - Azure
Page 10 of 164
Cloud Computing - Azure
In “Availability sets”,
Page 11 of 164
Cloud Computing - Azure
Click “Add”.
Page 12 of 164
Cloud Computing - Azure
Page 13 of 164
Cloud Computing - Azure
Click “Create”,
Page 14 of 164
Cloud Computing - Azure
Click “Dashboard”.
Page 15 of 164
Cloud Computing - Azure
Page 16 of 164
Cloud Computing - Azure
In “All services”,
Page 17 of 164
Cloud Computing - Azure
Page 18 of 164
Cloud Computing - Azure
Click “Add”.
Page 19 of 164
Cloud Computing - Azure
Click “Create”.
Page 20 of 164
Cloud Computing - Azure
Page 21 of 164
Cloud Computing - Azure
Click “Refresh”.
Page 22 of 164
Cloud Computing - Azure
Click “Front-EndNSG”.
In “Front-EndNSG”,
Page 23 of 164
Cloud Computing - Azure
Page 24 of 164
Cloud Computing - Azure
Click “Add”.
Page 25 of 164
Cloud Computing - Azure
Click “Add”.
Page 26 of 164
Cloud Computing - Azure
Now you are able to see that inbound security rules has been created for “100”.
Page 27 of 164
Cloud Computing - Azure
Click “Add”.
Page 28 of 164
Cloud Computing - Azure
Click “Add”.
Page 29 of 164
Cloud Computing - Azure
In “Front-EndNSG”,
Page 30 of 164
Cloud Computing - Azure
Click “Subnets”.
In “Subnets”,
Page 31 of 164
Cloud Computing - Azure
Page 32 of 164
Cloud Computing - Azure
Page 33 of 164
Cloud Computing - Azure
Page 34 of 164
Cloud Computing - Azure
Click “Ok”.
Page 35 of 164
Cloud Computing - Azure
Page 36 of 164
Cloud Computing - Azure
Page 37 of 164
Cloud Computing - Azure
In “Administrator Account”,
Page 38 of 164
Cloud Computing - Azure
Type “Username” as “sansbound” and type password for the virtual machine.
Page 39 of 164
Cloud Computing - Azure
In “Disks”,
Page 40 of 164
Cloud Computing - Azure
Expand “Advanced”,
Page 41 of 164
Cloud Computing - Azure
In “Networking”,
Page 42 of 164
Cloud Computing - Azure
Page 43 of 164
Cloud Computing - Azure
In “Management”,
Page 44 of 164
Cloud Computing - Azure
In “Guest config”,
Page 45 of 164
Cloud Computing - Azure
In “Tags”,
Page 46 of 164
Cloud Computing - Azure
Click “Create”.
Page 47 of 164
Cloud Computing - Azure
Page 48 of 164
Cloud Computing - Azure
Page 49 of 164
Cloud Computing - Azure
Page 50 of 164
Cloud Computing - Azure
Page 51 of 164
Cloud Computing - Azure
Page 52 of 164
Cloud Computing - Azure
Page 53 of 164
Cloud Computing - Azure
Page 54 of 164
Cloud Computing - Azure
Type “sudo –i” and press “Enter” to login Ubuntu as a root account.
Page 55 of 164
Cloud Computing - Azure
Page 56 of 164
Cloud Computing - Azure
Page 57 of 164
Cloud Computing - Azure
Page 58 of 164
Cloud Computing - Azure
Page 59 of 164
Cloud Computing - Azure
Page 60 of 164
Cloud Computing - Azure
Page 61 of 164
Cloud Computing - Azure
Need to check “Automatically delete tis virtual machine after creating the image”.
Page 62 of 164
Cloud Computing - Azure
Click “Create”.
Page 63 of 164
Cloud Computing - Azure
Page 64 of 164
Cloud Computing - Azure
In “Virtual machines”,
Click “Add”.
Page 65 of 164
Cloud Computing - Azure
Page 66 of 164
Cloud Computing - Azure
Page 67 of 164
Cloud Computing - Azure
Page 68 of 164
Cloud Computing - Azure
Page 69 of 164
Cloud Computing - Azure
Page 70 of 164
Cloud Computing - Azure
Page 71 of 164
Cloud Computing - Azure
In “Administrator account”,
Page 72 of 164
Cloud Computing - Azure
Page 73 of 164
Cloud Computing - Azure
Page 74 of 164
Cloud Computing - Azure
In “Disks”,
Page 75 of 164
Cloud Computing - Azure
In “Networking”,
Page 76 of 164
Cloud Computing - Azure
Page 77 of 164
Cloud Computing - Azure
In “Management”,
Page 78 of 164
Cloud Computing - Azure
Page 79 of 164
Cloud Computing - Azure
In “Tags”,
Page 80 of 164
Cloud Computing - Azure
Click “Create”.
Page 81 of 164
Cloud Computing - Azure
Page 82 of 164
Cloud Computing - Azure
In “Virtual machines”,
Click “Add”.
Page 83 of 164
Cloud Computing - Azure
Page 84 of 164
Cloud Computing - Azure
Page 85 of 164
Cloud Computing - Azure
Page 86 of 164
Cloud Computing - Azure
In “My Items”,
Page 87 of 164
Cloud Computing - Azure
Page 88 of 164
Cloud Computing - Azure
Page 89 of 164
Cloud Computing - Azure
In “Administrator Account”,
Page 90 of 164
Cloud Computing - Azure
Page 91 of 164
Cloud Computing - Azure
In “Disks”,
Page 92 of 164
Cloud Computing - Azure
In “Networking”
Page 93 of 164
Cloud Computing - Azure
Page 94 of 164
Cloud Computing - Azure
In “Management”,
Page 95 of 164
Cloud Computing - Azure
Page 96 of 164
Cloud Computing - Azure
Page 97 of 164
Cloud Computing - Azure
Click “Create”.
Page 98 of 164
Cloud Computing - Azure
Page 99 of 164
Cloud Computing - Azure
In “Virtual machine”,
Click “webserver01”.
Click “Yes”.
Go to line 198,
Delete the previous previous text and type “Sansbound Azure Class Webserver01”.
In “Virtual machines”,
Click “webserver02”.
Click “Yes”.
Click “Add”.
Click “Create”.
Click “Sans-WebLB”.
In “Backend pools”,
Click “Add”.
You are able to see that “webserver01” has been successfully added in target network IP configuration.
Click “Ok”.
You are able to see that webserver01 and webserver02 servers are added successfully in Backend pools
of “Sans-WebLB”.
Click “Add”.
Type “Interval” as “5” seconds (for check status of virtual machine and 80 port).
Click “Ok”.
Click “Add”.
Click “Ok”.
From your local machine, paste the public IP in browser and press “Enter”.
In Command prompt,
Note: You have successfully configured availability set with Load balancer and web traffic has been
load balanced successfully.