AZ-700T00A
Load balancing
non-HTTP(S) traffic
© Copyright Microsoft Corporation. All rights reserved.
© Copyright Microsoft Corporation. All rights reserved.
Module Overview
• Explore load balancing options in the Azure portal
• Design and implement Azure Load Balancer using the Azure portal
• Exercise – Create and configure an internal load balancer using the Azure portal
• Explore Azure Traffic Manager
• Exercise: Create a traffic manager profile using the Azure portal
© Copyright Microsoft Corporation. All rights reserved.
Explore load balancing
options in the Azure portal
© Copyright Microsoft Corporation. All rights reserved.
Learning Objectives – Load Balancing Options in the Azure Portal
• What is a Load balancer
• Load balancing options for Azure
• Choosing a load balancing option
• Demonstration
• Learning Recap
© Copyright Microsoft Corporation. All rights reserved.
What is a Load balancer
. com
to so
. con
w
ww Public IP
com IP
o.
ntos
. co
w
ww
IP
Public
IP
© Copyright Microsoft Corporation. All rights reserved.
Load balancing options for Azure
© Copyright Microsoft Corporation. All rights reserved.
Choosing a load balancing
option
Type of traffic
Scope
Availability
Cost
Features and limitations
© Copyright Microsoft Corporation. All rights reserved.
Demonstration
• Create the virtual network
• Create load balancer
• Create backend servers and test virtual machine with IIS installed
• Test the load balancer
© Copyright Microsoft Corporation. All rights reserved.
Learning Recap – Explore Load Balancing Options in the Azure
Portal
• Improve application scalability and resiliency by using Azure
Check your Load Balancer (
knowledge sandbox)
questions and
• Load balance non-HTTP(S) traffic in Azure
additional
study • Introduction to Azure Load Balancer
A sandbox indicates an additional exercise.
© Copyright Microsoft Corporation. All rights reserved.
Design and implement Azure
Load balancer
© Copyright Microsoft Corporation. All rights reserved.
Learning Objectives – Azure Load Balancer
• Determine Load Balancer type • Create Load Balancer Rules
• Gateway Load Balancer • Configure Session Persistence
• Azure Load balancer and • Create Health Probes
availability zones
• Configure outbound traffic with Standard
• Determine Load Balancer SKUs load balancer
• Create Load balancer in the • Demonstration
Azure portal
• Learning Recap
• Create Backend Pools
© Copyright Microsoft Corporation. All rights reserved.
Choosing a Load Balancer Type
A public load balancer is used to load
balance internet traffic to VMs
An internal load balancer is used
where private IPs are needed at the
frontend only
© Copyright Microsoft Corporation. All rights reserved.
Gateway Load Balancer
Gateway Load Balancer is a SKU
of the Azure Load Balancer
portfolio catered for high
performance and high
availability scenarios with third-
party Network Virtual Appliances
(NVAs)
Components to configure:
• Frontend IP
• Load-balancing rules
• Backend pool(s)
• Tunnel interfaces
• Chain
© Copyright Microsoft Corporation. All rights reserved.
Azure Load balancer and availability zones
Zone redundant Zonal
© Copyright Microsoft Corporation. All rights reserved.
Determine Load Balancer SKUs
Feature Basic SKU Standard SKU
Backend pool size Up to 300 IP Up to 5000 instances
Configurations
Health probes TCP, HTTP TCP, HTTP, HTTPS
Availability zones Not available Zone-redundant and zonal
frontends for inbound and
outbound traffic
Multiple frontends Inbound only Inbound and outbound
Secure by default Open by default. NSG Closed to inbound flows
optional. unless allowed by an NSG.
Internal traffic from the virtual
network to the internal load
balancer is allowed.
SLA Not available
© Copyright Microsoft Corporation. All rights reserved.
99.99%
Create Load balancer in the Azure portal
Subscription
Name
Region
Type
SKU
Tier
© Copyright Microsoft Corporation. All rights reserved.
Create Backend Pools
SKU Backend pool endpoints
VMs in a single availability set or
Basic SKU
VM scale set
Any VM in a single virtual
Standar network, including a blend of
d SKU VMs, availability sets, and VM
scale sets
To distribute traffic, a back-end address pool contains the
IP addresses of the virtual NICs that are connected to the load balancer
© Copyright Microsoft Corporation. All rights reserved.
Create Load Balancer Rules
Maps a frontend IP and port
combination to a set of backend pool
and port combination
Rules can be used in combination
with NAT rules
A NAT rule is explicitly attached to a
VM (or network interface) to complete
the path to the target
© Copyright Microsoft Corporation. All rights reserved.
Configure Session Persistence
None (default) Client IP requests Client IP and protocol specifies that
Session persistence
requests can be will be handled by successive requests from the same
specifies how client
handled by any the same virtual address and protocol will be handled
traffic is handled
virtual machine machine by the same virtual machine
© Copyright Microsoft Corporation. All rights reserved.
Create Health Probes
Allows the load balancer to
monitor the status of an app
Dynamically adds or removes VMs
from the load balancer rotation
based on their response to health
checks
HTTP custom probe
TCP custom probe tries to
establish a successful TCP session
© Copyright Microsoft Corporation. All rights reserved.
Configure outbound traffic with Standard load balancer
source network address
translation (SNAT)
Outbound rules allow you to
explicitly define SNAT
•IP masquerading
•Simplifying your allow lists
•Reduces the number of public IP
resources for deployment.
© Copyright Microsoft Corporation. All rights reserved.
Demonstration
• Create the virtual network
• Create public load balancer
• Create backend pool
• Create a health probe
© Copyright Microsoft Corporation. All rights reserved.
Learning Recap –Azure Load Balancer
What is Azure Load Balancer? – Azure Load Balancer | Microsoft Docs
Check your
knowledge
questions and
additional
study
© Copyright Microsoft Corporation. All rights reserved.
Exercise – Create and
configure an internal
load balancer using the
Azure portal
© Copyright Microsoft Corporation. All rights reserved.
Exercise - Create and configure an Azure load balancer
Task 1: Create the virtual network
Task 2: Create the load balancer
Task 3: Create load balancer
resources
Task 4: Create backend servers
Task 5: Test the load balancer
© Copyright Microsoft Corporation. All rights reserved.
Exercise Create and Configure an Internal Load Balancer Using
the Azure Portal
Quickstart
Check your : Create a public load balancer – Azure portal – Azure Load Balancer | Mi
crosoft Docs
knowledge
questions and
additional
study
© Copyright Microsoft Corporation. All rights reserved.
Explore Azure Traffic
Manager
© Copyright Microsoft Corporation. All rights reserved.
Learning Objectives – Explore Azure Traffic Manager
• Use cases for Azure Traffic Manager
• How Traffic manager works
• Traffic routing methods
• Traffic manager endpoints
• Configuring traffic manager profiles
• Configure Endpoint monitoring
• Demonstration
• Learning Reap
© Copyright Microsoft Corporation. All rights reserved.
Use cases for Azure Traffic Manager
Increase application availability
Improve application performance
Service maintenance without
downtime
Combine hybrid applications
Distribute traffic for complex
deployments
© Copyright Microsoft Corporation. All rights reserved.
How Traffic manager works
The Traffic Manager name servers receive
the request. They choose an endpoint
based on:
• The configured state of each endpoint
• The current health of each endpoint,
as determined by the Traffic Manager
health checks
• The chosen traffic-routing method
• Final connection is not going through
Traffic Manager
© Copyright Microsoft Corporation. All rights reserved.
Traffic routing methods – Priority
© Copyright Microsoft Corporation. All rights reserved.
Traffic routing methods – Weighted
© Copyright Microsoft Corporation. All rights reserved.
Traffic routing methods – Performance
© Copyright Microsoft Corporation. All rights reserved.
Traffic routing methods - Geographic
© Copyright Microsoft Corporation. All rights reserved.
Traffic manager endpoints
Azure endpoints – load balance traffic to a cloud
service, web app, or public IP address in the same
subscription within Azure.
External endpoints - load balance traffic for
IPv4/IPv6 addresses, FQDNs, or for services
hosted outside Azure. These services can either
be on-premises or with a hosting provider.
Nested endpoints - combine Traffic Manager
profiles to create more flexible traffic-routing
schemes to support the needs of larger, more
complex deployments.
© Copyright Microsoft Corporation. All rights reserved.
Configuring traffic manager profiles
© Copyright Microsoft Corporation. All rights reserved.
Configure Endpoint monitoring
On the Configuration page
for the Traffic Manager profile:
Select Endpoint monitor
settings section, and specify
the following settings:
Protocol
Port
Path
Custom header settings
Expected status code ranges
Probing interval
tolerated number of failures
probe timeout
© Copyright Microsoft Corporation. All rights reserved.
Demonstration – Azure Traffic Manager
• Create a Traffic Manager profile
• Add Traffic Manager endpoints
• Test Traffic Manager profile
© Copyright Microsoft Corporation. All rights reserved.
Learning Recap – Azure Traffic Manager
Azure Traffic Manager | Microsoft Docs
Check your Tutorial – Improve website response with Azure Traffic Manager | Micros
knowledge oft Docs
questions and
additional
study
© Copyright Microsoft Corporation. All rights reserved.
Exercise – Create a traffic
manager profile using the
Azure portal
© Copyright Microsoft Corporation. All rights reserved.
Exercise- create a traffic manager profile using the Azure portal
Task 1: Create the web apps
Task 2: Create a Traffic Manager
profile
Task 3: Add Traffic Manager
endpoints
Task 4: Test the Traffic Manager
profile
© Copyright Microsoft Corporation. All rights reserved.
End of presentation
© Copyright Microsoft Corporation. All rights reserved.