Lab23 - Understanding Availability set and Load balancer - Azure
Lab23 - Understanding Availability set and Load balancer - Azure
Availability set
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.
Additionally, a public Load Balancer can provide outbound connections for virtual
machines (VMs) inside your virtual network by translating their private IP addresses to
public IP addresses.
Page 1 of 163
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
Azure provides a suite of fully managed load-balancing solutions for your scenarios. If
you are looking for Transport Layer Security (TLS) protocol termination ("SSL offload") or
per-HTTP/HTTPS request, application-layer processing, review Application Gateway. If
you are looking for global DNS load balancing, review Traffic Manager. Your end-to-
end scenarios might benefit from combining these solutions as needed.
Page 2 of 163
Cloud Computing - Azure
Topology:
Page 3 of 163
Cloud Computing - Azure
Page 4 of 163
Cloud Computing - Azure
Click “Add”.
Page 5 of 163
Cloud Computing - Azure
Click “Create”.
Page 6 of 163
Cloud Computing - Azure
Page 7 of 163
Cloud Computing - Azure
In “All services”,
Page 8 of 163
Cloud Computing - Azure
In “Availability sets”,
Click “Add”.
Page 9 of 163
Cloud Computing - Azure
Page 10 of 163
Cloud Computing - Azure
In “Availability sets”,
Page 11 of 163
Cloud Computing - Azure
Click “Add”.
Page 12 of 163
Cloud Computing - Azure
Page 13 of 163
Cloud Computing - Azure
Click “Create”,
Page 14 of 163
Cloud Computing - Azure
Click “Dashboard”.
Page 15 of 163
Cloud Computing - Azure
Page 16 of 163
Cloud Computing - Azure
In “All services”,
Page 17 of 163
Cloud Computing - Azure
Click “Add”.
Page 18 of 163
Cloud Computing - Azure
Page 19 of 163
Cloud Computing - Azure
Click “Create”.
Page 20 of 163
Cloud Computing - Azure
Click “Refresh”.
Page 21 of 163
Cloud Computing - Azure
Click “Front-EndNSG”.
Page 22 of 163
Cloud Computing - Azure
In “Front-EndNSG”,
Page 23 of 163
Cloud Computing - Azure
Click “Add”.
Page 24 of 163
Cloud Computing - Azure
Page 25 of 163
Cloud Computing - Azure
Click “Add”.
Page 26 of 163
Cloud Computing - Azure
Now you are able to see that inbound security rules has been created for “100”.
Click “Add”.
Page 27 of 163
Cloud Computing - Azure
Page 28 of 163
Cloud Computing - Azure
Click “Add”.
Page 29 of 163
Cloud Computing - Azure
In “Front-EndNSG”,
Click “Subnets”.
Page 30 of 163
Cloud Computing - Azure
In “Subnets”,
Page 31 of 163
Cloud Computing - Azure
Page 32 of 163
Cloud Computing - Azure
Page 33 of 163
Cloud Computing - Azure
Page 34 of 163
Cloud Computing - Azure
Click “Ok”.
Page 35 of 163
Cloud Computing - Azure
Page 36 of 163
Cloud Computing - Azure
Page 37 of 163
Cloud Computing - Azure
In “Administrator Account”,
Type “Username” as “sansbound” and type password for the virtual machine.
Page 38 of 163
Cloud Computing - Azure
Page 39 of 163
Cloud Computing - Azure
In “Disks”,
Expand “Advanced”,
Page 40 of 163
Cloud Computing - Azure
Page 41 of 163
Cloud Computing - Azure
In “Networking”,
Page 42 of 163
Cloud Computing - Azure
Page 43 of 163
Cloud Computing - Azure
In “Management”,
Page 44 of 163
Cloud Computing - Azure
In “Guest config”,
Page 45 of 163
Cloud Computing - Azure
In “Tags”,
Page 46 of 163
Cloud Computing - Azure
Click “Create”.
Page 47 of 163
Cloud Computing - Azure
Page 48 of 163
Cloud Computing - Azure
Page 49 of 163
Cloud Computing - Azure
Page 50 of 163
Cloud Computing - Azure
Page 51 of 163
Cloud Computing - Azure
Page 52 of 163
Cloud Computing - Azure
Page 53 of 163
Cloud Computing - Azure
Type “sudo –i” and press “Enter” to login Ubuntu as a root account.
Page 54 of 163
Cloud Computing - Azure
Page 55 of 163
Cloud Computing - Azure
Page 56 of 163
Cloud Computing - Azure
Page 57 of 163
Cloud Computing - Azure
Page 58 of 163
Cloud Computing - Azure
Page 59 of 163
Cloud Computing - Azure
Page 60 of 163
Cloud Computing - Azure
Need to check “Automatically delete tis virtual machine after creating the image”.
Page 61 of 163
Cloud Computing - Azure
Click “Create”.
Page 62 of 163
Cloud Computing - Azure
Page 63 of 163
Cloud Computing - Azure
In “Virtual machines”,
Click “Add”.
Page 64 of 163
Cloud Computing - Azure
Page 65 of 163
Cloud Computing - Azure
Page 66 of 163
Cloud Computing - Azure
Page 67 of 163
Cloud Computing - Azure
Page 68 of 163
Cloud Computing - Azure
Page 69 of 163
Cloud Computing - Azure
Page 70 of 163
Cloud Computing - Azure
In “Administrator account”,
Page 71 of 163
Cloud Computing - Azure
Page 72 of 163
Cloud Computing - Azure
Page 73 of 163
Cloud Computing - Azure
In “Disks”,
Page 74 of 163
Cloud Computing - Azure
In “Networking”,
Page 75 of 163
Cloud Computing - Azure
Page 76 of 163
Cloud Computing - Azure
In “Management”,
Page 77 of 163
Cloud Computing - Azure
Page 78 of 163
Cloud Computing - Azure
In “Tags”,
Page 79 of 163
Cloud Computing - Azure
Click “Create”.
Page 80 of 163
Cloud Computing - Azure
Page 81 of 163
Cloud Computing - Azure
In “Virtual machines”,
Page 82 of 163
Cloud Computing - Azure
Click “Add”.
Page 83 of 163
Cloud Computing - Azure
Page 84 of 163
Cloud Computing - Azure
Page 85 of 163
Cloud Computing - Azure
Page 86 of 163
Cloud Computing - Azure
In “My Items”,
Page 87 of 163
Cloud Computing - Azure
Page 88 of 163
Cloud Computing - Azure
Page 89 of 163
Cloud Computing - Azure
In “Administrator Account”,
Page 90 of 163
Cloud Computing - Azure
Page 91 of 163
Cloud Computing - Azure
In “Disks”,
Page 92 of 163
Cloud Computing - Azure
In “Networking”
Page 93 of 163
Cloud Computing - Azure
Page 94 of 163
Cloud Computing - Azure
In “Management”,
Page 95 of 163
Cloud Computing - Azure
Page 96 of 163
Cloud Computing - Azure
Page 97 of 163
Cloud Computing - Azure
Click “Create”.
Page 98 of 163
Cloud Computing - Azure
Page 99 of 163
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.