Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
59 views
Create A Gateway Load Balancer Using The Azure CLI
Uploaded by
Sanskar
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Create a gateway load balancer using the Azure CLI For Later
Download
Save
Save Create a gateway load balancer using the Azure CLI For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
59 views
Create A Gateway Load Balancer Using The Azure CLI
Uploaded by
Sanskar
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Create a gateway load balancer using the Azure CLI For Later
Carousel Previous
Carousel Next
Download
Save
Save Create a gateway load balancer using the Azure CLI For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 9
Search
Fullscreen
125124, 752 PM ‘Tutorial: Create a gateway oad balancer - Azure CLI Azure Load Balancer | Microsoft Learn Tutorial: Create a gateway load balancer using the Azure CLI Article + 06/27/2023 Azure Load Balancer consists of Standard, Basic, and Gateway SKUs. Gateway Load Balancer is used for transparent insertion of Network Virtual Appliances (NVA). Use Gateway Load Balancer for scenarios that require high performance and high scalability of NVAs. In this tutorial, you learn how to: VY Create virtual network VY Create network security group. V Create a gateway load balancer. VY Chain a load balancer frontend to gateway load balancer. Prerequisites ‘* Use the Bash environment in Azure Cloud Shell. For more information, see Quickstart for Bash in Azure Cloud Shell. i * Ifyou prefer to run CLI reference commands locally, install the Azure CLI. If you're running on Windows or macOS, consider running Azure CLI in a Docker container. For more information, see How to run the Azure CLI in a Docker container, © Ifyou're using a local installation, sign in to the Azure CLI by using the az login command. To finish the authentication process, follow the steps displayed in your terminal. For other sign-in options, see Sign in with the Azure CLI. © When you're prompted, install the Azure CLI extension on first use. For more information about extensions, see Use extensions with the Azure CLI. © Run az version to find the version and dependent libraries that are installed. To upgrade to the latest version, run az upgrade. © This tutorial requires version 2.0.28 or later of the Azure CLI. If using Azure Cloud Shell, the latest version is already installed. nitps:leam microsot.comlon-uslazurelload-balancertutora-gatewsay-< 18125124, 752 PM ‘Tutorial: Create a gateway load balancer - Azure CLI Azure Load Balancer| Microsoft Learn ‘© An Azure account with an active subscription.Create an account for free * An existing public standard SKU Azure Load Balancer. For more information on creating a load balancer, see Create a public load balancer using the Azure CLI. © For the purposes of this tutorial, the existing load balancer in the examples is named myLoadBalancer. Create a resource group ‘An Azure resource group is a logical container into which Azure resources are deployed and managed. Create a resource group with az group create: ‘Azure CLI az group create \ =-name TutoréwLB-rg \ --location eastus Configure virtual network A virtual network is needed for the resources that are in the backend pool of the gateway load balancer. Create virtual network Use az network vnet create to create the virtual network. Azure CLI az network vnet create \ --resource-group TutorGwLB-rg \ location eastus \ =-name myVNet \ address-prefixes
[email protected]
/16 \ subnet-name myBackendSubnet \ --subnet-prefixes 10,1.0.0/24 nitps:leam microsot.comlon-uslazurelload-balancertutora-gatewsay-< 20125124, 752 PM Tutorial: Cre a gateway load balancer - Azure CL1- Azure Load Balance | Mirsot Lear Create bastion public IP address Use az network public-ip create to create a public IP address for the Azure Bastion host Azure CLI az network public-ip create \ ~-resource-group TutorGwLB-rg \ --name myBastionIP \ --sku Standard \ --zone 123 Create bastion subnet Use az network vnet subnet create to create the bastion subnet. Azure Cll az network vnet subnet create \ =-esource-group TutorGwLB-rg \ =-name AzureBastionSubnet \ s-vnet-name myVNet \ --address-prefixes 10,1.1.0/27 Create bastion host Use az network bastion create to deploy a bastion host for secure management of resources in virtual network ‘Azure CLI az network bastion create \ --resource-group TutoréwLB-rg \ <-name myBastionHost \ --public-ip-address myBastionIP \ --vnet-name myVNet \ --location eastus It can take a few minutes for the Azure Bastion host to deploy. © Important nttps:leam microsof.comlen-usfazureload-balancerttora-gatewsay-< 3‘12504, 752 Pm “uot: Crate a gateway load balancer - Azure CLI- Azure Load Balance | Mirsot Lear Hourly pricing starts from the moment that Bastion is deployed, regardless of outbound data usage. For more information, see Pricing and SKUs. If you're deploying Bastion as part of a tutorial or test, we recommend that you delete this resource after you finish using it. Configure NSG Use the following example to create a network security group. You'll configure the NSG rules needed for network traffic in the virtual network created previously. Create NSG Use az network nsg create to create the NSG. Azure CLI az network nsg create \ --resource-group TutoréwLB-rg \ =-name myNSG Create NSG Rules Use az network nsg rule create to create rules for the NSG. Azure CLI az network nsg rule create \ --pesource-group TutoréwLB-rg \ --nsg-name myNSG \ =-name myNSGRule-AllowAll \ --protocol '*" \ --direction inbound \ --source-address-prefix '0.0.0.0/@" \ --source-port-range '*" \ --destination-address-prefix '0.0.0.0/0" \ --destination-port-range "*" \ --access allow \ --priority 100 az network nsg rule create \ =-resource-group TutorGwLB-rg \ --nsg-name myNSG \ nitps:leam microsot.comlon-uslazureload-balancerttora-gateway-<112524, 7:52 PM ‘Tutorial: Create a gateway oad balancer - Azure CLI- Azure Load Balancer| Microsoft Learn =-name myNSGRule-AllowAll-TCP-out \ =-protocol ‘TCP’ \ --direction outbound \ --source-address-prefix '0.0.0.0/8" \ --source-port-range ‘*" \ --destination-address-prefix '0.0.0.0/0" \ --destination-port-range ‘*" \ --access allow \ --priority 100 Configure Gateway Load Balancer In this section, you'll create the configuration and deploy the gateway load balancer. Create Gateway Load Balancer To create the load balancer, use az network |b create. Azure CLI az network 1b create \ --resource-group TutorGwLB-rg \ --name myLoadBalancer-gw \ --sku Gateway \ --vnet-name myVNet \ --subnet myBackendSubnet \ --backend-pool-name myBackendPool \ --frontend-ip-name myFrontEnd Create tunnel interface An internal interface is automatically created with Azure CLI with the --identifier of 900 and --port of 10800. You'll use az network Ib address-pool tunnel-interface add to create external tunnel interface for the load balancer. ‘Azure CLI az network 1b address-pool tunnel-interface add \ --address-pool myBackEndPool \ --identifier '901" \ nitps:leam microsot.comlon-uslazureload-balancertutora-gatewsay-< 59‘125128, 7:52 PM ‘Tutorial: Create a gateway load balancer - Azure CLI Azure Load Balancer| Microsoft Learn <-1b-name myLoadBalancer-gu \ =-protocol VXLAN \ =-resource-group TutorGwLB-rg \ --type External \ --port '10801" Create health probe A health probe is required to monitor the health of the backend instances in the load balancer, Use az network Ib probe create to create the health probe. ‘Azure CLI az network 1b probe create \ --resource-group TutorGwLB-rg \ =-Ib-name myLoadBalancer-gw \ =-name myHealthProbe \ --protocol http \ ~-port 88 \ --path "/* \ -+interval '5* \ --threshold "2" Create load-balancing rule Traffic destined for the backend instances is routed with a load-balancing rule. Use az network |b rule create to create the load-balancing rule. ‘Azure CLI az network 1b rule create \ --resource-group TutorGwLB-rg \ --1b-name myLoadBalancer-gu \ --name myLBRule \ =-protocol All \ --frontend-port @ \ --backend-port @ \ --frontend-ip-name myFronténd \ --backend-pool-name myBackéndPool \ --probe-name myHealthProbe hntps:leam microsof. conver-usiazureload-nalancerfutorial-gateway-c125124, 752 PM ateway load balancer - Azure CLI-Azure Load Balancer | Microsoft Learn Add network virtual appliances to the Gateway Load Balancer backend pool Deploy NVAs through the Azure Marketplace. Once deployed, add the virtual machines to the backend pool with az network nic ip-config address-pool add. Chain load balancer frontend to Gateway Load Balancer In this example, you'll chain the frontend of a standard load balancer to the gateway load balancer. You'll add the frontend to the frontend IP of an existing load balancer in your subscription. Use az network Ib frontend-ip show to place the resource ID of your gateway load balancer frontend into a variable. Use az network Ib frontend-ip update to chain the gateway load balancer frontend to your existing load balancer. ‘Azure CLI feid=$(az network 1b frontend-ip show \ =-resource-group TutorGwLB-rg \ --1b-name myLoadBalancer-gw \ --name myFrontend \ --query id \ --output tsv) az network 1b frontend-ip update \ --resource-group CreatePubLBQS-rg \ shame myFrontendIP \ --1b-name myLoadBalancer \ --public-ip-address myPublicIP \ --gateway-1b $feid Chain virtual machine to Gateway Load Balancer Alternatively, you can chain a VM's NIC IP configuration to the gateway load balancer. nitps:leam microsot.comlon-uslazurelload-balancertutora-gatewsay-< 78125124, 752 PM ‘Tutorial: Create a gateway oad balancer - Azure CLI- Azure Load Balancer| Microsoft Learn You'll add the gateway load balancer's frontend to an existing VM's NIC IP configuration. Use az network Ib frontend-ip show to place the resource ID of your gateway load balancer frontend into a variable Use az network Ib frontend-ip update to chain the gateway load balancer frontend to your ‘existing VM's NIC IP configuration. Azure CLI feid-$(az network 1b frontend-ip show \ =-resource-group TutorwL8-rg \ =-lb-name myLoadBalancer-gu \ =-name myFrontend \ ~-query id \ =-output tsv) az network nic ip-config update \ ~-resource-group MyResourceGroup =-nicename MyNIC --name MyTPconfig --gateway-1b $feid Clean up resources When no longer needed, you can use the az group delete command to remove the resource group, load balancer, and the remaining resources. ‘Azure CLI az group delete \ =-name TutorGuLB-rg Next steps Create Network Virtual Appliances in Azure. When creating the NVAs, choose the resources created in this tutorial: © Virtual network nitps:leam microsot.comlon-usfazureload-balancerttora-gatewsay-< 8cer | Microsoft Learn tea gateway load balancer - Azure CLI- Azure Load 8 125124, 752 PM © Subnet * Network security group * Gateway Load Balancer Advance to the next article to learn how to create a cross-region Azure Load Balancer. nitps:leam microsot.comlon-usfazureload-balancerttora-gatewsay-< 9
You might also like
AZ 305T00A ENU TrainerPrepGuide
PDF
No ratings yet
AZ 305T00A ENU TrainerPrepGuide
8 pages
AZ-900 Study Guide
PDF
No ratings yet
AZ-900 Study Guide
3 pages
Compare Support Plans - Developer, Business, Enterprise - AWS Support
PDF
No ratings yet
Compare Support Plans - Developer, Business, Enterprise - AWS Support
5 pages
Microsoft Dynamics NAV 2013 R2 Sizing Guidelines For On-Premises Single Tenant Deployments
PDF
No ratings yet
Microsoft Dynamics NAV 2013 R2 Sizing Guidelines For On-Premises Single Tenant Deployments
20 pages
Step by Step DFS
PDF
No ratings yet
Step by Step DFS
53 pages
Create A Gateway Load Balancer Using Azure PowerShell
PDF
No ratings yet
Create A Gateway Load Balancer Using Azure PowerShell
9 pages
Create A Load Balancer With More Than One Availability Set in The Backend Pool Using The Azure Portal
PDF
No ratings yet
Create A Load Balancer With More Than One Availability Set in The Backend Pool Using The Azure Portal
21 pages
Create A Single Virtual Machine Inbound NAT Rule Using The Azure Portal
PDF
No ratings yet
Create A Single Virtual Machine Inbound NAT Rule Using The Azure Portal
13 pages
Az 104t00a Enu Powerpoint 04
PDF
No ratings yet
Az 104t00a Enu Powerpoint 04
42 pages
Implementing Virtual Machines
PDF
No ratings yet
Implementing Virtual Machines
26 pages
Azure Function Lab
PDF
No ratings yet
Azure Function Lab
8 pages
Azure Win VM Terraform LAB
PDF
No ratings yet
Azure Win VM Terraform LAB
10 pages
Windows Azure Platform 2010-04-20 Dominick Baier and Christian Weyer
PDF
No ratings yet
Windows Azure Platform 2010-04-20 Dominick Baier and Christian Weyer
24 pages
Microsoft 365 Troubleshoot Admintoc 2
PDF
No ratings yet
Microsoft 365 Troubleshoot Admintoc 2
462 pages
Cross Tenant Migration Trust Setup
PDF
No ratings yet
Cross Tenant Migration Trust Setup
34 pages
Azure DDoS Network Protection
PDF
No ratings yet
Azure DDoS Network Protection
9 pages
Mod 2 - Lab - Deploy and Manage Virtual Machines
PDF
No ratings yet
Mod 2 - Lab - Deploy and Manage Virtual Machines
12 pages
System Design
PDF
No ratings yet
System Design
11 pages
Azure Architecturing PDF
PDF
No ratings yet
Azure Architecturing PDF
113 pages
Planning and Provisioning Office 365
PDF
No ratings yet
Planning and Provisioning Office 365
37 pages
Implementing Microsoft Azure Infrastructure Solutions: Exam 70-533
PDF
No ratings yet
Implementing Microsoft Azure Infrastructure Solutions: Exam 70-533
99 pages
LAB 01-Manage Azure AD Identities
PDF
100% (1)
LAB 01-Manage Azure AD Identities
6 pages
Big-Ip Virtual Edition Setup Guide For Microsoft Hyper-V
PDF
No ratings yet
Big-Ip Virtual Edition Setup Guide For Microsoft Hyper-V
26 pages
Azure Topics
PDF
No ratings yet
Azure Topics
108 pages
Ajay Kumar Azure Resume - Latest
PDF
No ratings yet
Ajay Kumar Azure Resume - Latest
4 pages
Windows Virtual Machines Overview - Azure - Microsoft Docs PDF
PDF
No ratings yet
Windows Virtual Machines Overview - Azure - Microsoft Docs PDF
1,071 pages
AZ-300-Week1-DevelopConfigureInfrastructure
PDF
No ratings yet
AZ-300-Week1-DevelopConfigureInfrastructure
115 pages
Lab-Demo-Recordings - AZ-103.md at Master MicrosoftLearning - Lab-Demo-Recordings GitHub
PDF
No ratings yet
Lab-Demo-Recordings - AZ-103.md at Master MicrosoftLearning - Lab-Demo-Recordings GitHub
2 pages
How To - Integrate OpManager With Cyberoam
PDF
No ratings yet
How To - Integrate OpManager With Cyberoam
7 pages
Fundamental of Azure, Azure Subscription
PDF
No ratings yet
Fundamental of Azure, Azure Subscription
29 pages
Azure Cloud Engineer New
PDF
No ratings yet
Azure Cloud Engineer New
2 pages
How To Configure Azure Route Tables (UDR) Using Azure Portal and ARM
PDF
No ratings yet
How To Configure Azure Route Tables (UDR) Using Azure Portal and ARM
11 pages
Azure MS Docs PDF
PDF
No ratings yet
Azure MS Docs PDF
766 pages
AZ 104T00A ENU StudyGuide
PDF
No ratings yet
AZ 104T00A ENU StudyGuide
13 pages
How To Configure The Perfect Golden Image For WVD
PDF
No ratings yet
How To Configure The Perfect Golden Image For WVD
22 pages
Deploying Web Apps in Enterprise Scenarios
PDF
No ratings yet
Deploying Web Apps in Enterprise Scenarios
269 pages
Up To Date 70-532 PDF Exam Demo
PDF
100% (4)
Up To Date 70-532 PDF Exam Demo
14 pages
OpManager Installation Guide
PDF
No ratings yet
OpManager Installation Guide
42 pages
Admin 2
PDF
No ratings yet
Admin 2
336 pages
Az 400t00a Enu Powerpoint 03
PDF
No ratings yet
Az 400t00a Enu Powerpoint 03
85 pages
Windows Server 2008 Group Policy Settings
PDF
100% (4)
Windows Server 2008 Group Policy Settings
344 pages
Get Migrating a Two-Tier Application to Azure: A Hands-on Walkthrough of Azure Infrastructure, Platform, and Container Services Peter De Tender free all chapters
PDF
100% (13)
Get Migrating a Two-Tier Application to Azure: A Hands-on Walkthrough of Azure Infrastructure, Platform, and Container Services Peter De Tender free all chapters
55 pages
AZ 104 Amostra Gratis
PDF
No ratings yet
AZ 104 Amostra Gratis
15 pages
AZURE Application Gateway
PDF
No ratings yet
AZURE Application Gateway
4 pages
Mod 4 - Lab - Configure Azure DNS
PDF
No ratings yet
Mod 4 - Lab - Configure Azure DNS
6 pages
Opmanager Userguide
PDF
No ratings yet
Opmanager Userguide
385 pages
Adfs O365
PDF
No ratings yet
Adfs O365
10 pages
Azure Docu PDF
PDF
No ratings yet
Azure Docu PDF
349 pages
Microsoft Official Course: Planning and Deploying Servers Using Virtual Machine Manager
PDF
No ratings yet
Microsoft Official Course: Planning and Deploying Servers Using Virtual Machine Manager
33 pages
Implementing Microsoft Azure Infrastructure Solutions
PDF
100% (1)
Implementing Microsoft Azure Infrastructure Solutions
9 pages
The Ultimate Guide of SSL
PDF
No ratings yet
The Ultimate Guide of SSL
93 pages
Windows Logging Cheat Sheet - Win 7 Thru Win 2019: Covered Operating Systems
PDF
No ratings yet
Windows Logging Cheat Sheet - Win 7 Thru Win 2019: Covered Operating Systems
7 pages
Opmanager User Guide
PDF
No ratings yet
Opmanager User Guide
185 pages
Lab 01 - Manage Azure Active Directory Identities
PDF
No ratings yet
Lab 01 - Manage Azure Active Directory Identities
9 pages
Microsoft Azure1 PDF
PDF
No ratings yet
Microsoft Azure1 PDF
452 pages
Module 1: Office 365 Services Overview Lab: Office 365 Services Overview
PDF
No ratings yet
Module 1: Office 365 Services Overview Lab: Office 365 Services Overview
6 pages
Azure Top 20 Most Helpful Information
PDF
No ratings yet
Azure Top 20 Most Helpful Information
183 pages
Azure Ad Mfa
PDF
No ratings yet
Azure Ad Mfa
14 pages
Create An Internal Load Balancer Via CLI
PDF
No ratings yet
Create An Internal Load Balancer Via CLI
12 pages
Create A Gateway Load Balancer Using The Azure Portal
PDF
No ratings yet
Create A Gateway Load Balancer Using The Azure Portal
16 pages
Configure Outbound Connectivity With A Gateway Load Balancer
PDF
No ratings yet
Configure Outbound Connectivity With A Gateway Load Balancer
7 pages
Load Balance VMs Within An Availability Zone by Using The Azure Portal
PDF
No ratings yet
Load Balance VMs Within An Availability Zone by Using The Azure Portal
15 pages
Recover Deleted Storage Account
PDF
No ratings yet
Recover Deleted Storage Account
3 pages
Create A Multiple Virtual Machine Inbound NAT Rule Using The Azure Portal
PDF
No ratings yet
Create A Multiple Virtual Machine Inbound NAT Rule Using The Azure Portal
13 pages
Migrate From Inbound NAT Pools To NAT Rules
PDF
No ratings yet
Migrate From Inbound NAT Pools To NAT Rules
4 pages
Azure Blob Storage Client Library For C++
PDF
No ratings yet
Azure Blob Storage Client Library For C++
11 pages
Create An Internal Load Balancer Via Bicep
PDF
No ratings yet
Create An Internal Load Balancer Via Bicep
7 pages
Use Azure Storage Explorer To Create A Blob
PDF
No ratings yet
Use Azure Storage Explorer To Create A Blob
8 pages
Azure Blob Storage Client Library For Java
PDF
No ratings yet
Azure Blob Storage Client Library For Java
16 pages
Create, Download, and List Blobs With Azure CLI
PDF
No ratings yet
Create, Download, and List Blobs With Azure CLI
6 pages
Azure Blob Storage Client Library For Python
PDF
No ratings yet
Azure Blob Storage Client Library For Python
13 pages
Identity Integrations
PDF
No ratings yet
Identity Integrations
7 pages
Introduction To Azure Blob Storage
PDF
No ratings yet
Introduction To Azure Blob Storage
6 pages
What Is Azure Blob Storage
PDF
No ratings yet
What Is Azure Blob Storage
2 pages
Blob Storage Feature Support in Azure Storage Accounts
PDF
No ratings yet
Blob Storage Feature Support in Azure Storage Accounts
6 pages
Integrate With Zero Trust Solutions
PDF
No ratings yet
Integrate With Zero Trust Solutions
1 page
Azure Linux VM Portal LAB
PDF
No ratings yet
Azure Linux VM Portal LAB
7 pages
Zero Trust Principles To An Azure Virtual WAN
PDF
No ratings yet
Zero Trust Principles To An Azure Virtual WAN
17 pages
DNS Name Resolution
PDF
No ratings yet
DNS Name Resolution
7 pages
Virtual Machine With A Static Public IP Address
PDF
No ratings yet
Virtual Machine With A Static Public IP Address
4 pages
Azure Win VM Portal LAB
PDF
No ratings yet
Azure Win VM Portal LAB
8 pages
Azure VM Overview
PDF
No ratings yet
Azure VM Overview
9 pages
Create A Fully Qualified Domain Name For A VM
PDF
No ratings yet
Create A Fully Qualified Domain Name For A VM
1 page