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)
52 views
9 pages
Create A Gateway Load Balancer Using Azure PowerShell
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 Azure PowerSh... For Later
Download
Save
Save Create a gateway load balancer using Azure PowerSh... For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
52 views
9 pages
Create A Gateway Load Balancer Using Azure PowerShell
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 Azure PowerSh... For Later
Carousel Previous
Carousel Next
Download
Save
Save Create a gateway load balancer using Azure PowerSh... 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 “Tutoriat Create a gateway load balancer - Azure PowerShell - Azure Load Balancer | Micrasof Leam Tutorial: Create a gateway load balancer using Azure PowerShell 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 V Create network security group. V Create a gateway load balancer. VY Chain a load balancer frontend to gateway load balancer. Prerequisites * 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 Azure PowerShell © For the purposes of this tutorial, the existing load balancer in the examples is named myLoadBalancer. ‘* Azure PowerShell installed locally or Azure Cloud Shell If you choose to install and use PowerShell locally, this article requires the Azure PowerShell module version 5.4.1 or later. Run Get-Nodule -ListAvailable Az to find the installed version. If you need to upgrade, see Install Azure PowerShell module, If you're running PowerShell locally, you also need to run Connect-AzAccount to create a connection with Azure. 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 New-AzResourceGroup: ntips:leam microsot.comlon-uslazureload-balancerutora-gateway-powershell 19125124, 752 PM “Tutoriat Create a gateway oad balancer - Azure PowerShell - Azure Load Balancer | Micrasof Leam ‘Azure PowerShell New-AzResourceGroup -Name ‘TutorGwL8-rg’ -Location "eastus’ Create virtual network A virtual network is needed for the resources that are in the backend pool of the gateway load balancer, Use New-AzVirtualNetwork to create the virtual network. Use New- AzBastion to deploy a bastion host for secure management of resources in virtual network. @ Important 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. ‘Azure PowerShell t# Create backend subnet config i $subnet = @ Name = ‘myBackendSubnet’ AddressPrefix = '10.1.0.0/24" t $subnetConfig = New-AzVirtualNetworkSubnetConfig @subnet fH Create Azure Bastion subnet. ## $bastsubnet = @{ Name AddressPrefix = '10.1.1.0/24' "azureBastionSubnet’ } $bastsubnetConfig = New-AzVirtualNetworkSubnetConfig @bastsubnet ## Create the virtual network ## gnet = Name = ‘nyVNet ResourceGroupNane = ‘TutorGuLB-rg" Location = ‘eastus’ AddressPrefix = '16.1.0.0/16' Subnet = $subnetConfig, $bastsubnetConfig + ntips:leam microsot.comlon-uslazureload-balancerutora-gateway-powershell 291125124, 752 PM “Tutoriat Create a gateway lad balancer - Azure PowerShell - Azure Load Balancer | Microsoft Le $vnet = New-AzVirtualNetwork @net ### Create public IP address for bastion host. ## Sip = Of Name = ‘myBastionIP" ResourceGroupName = ‘TutorGwLB-rg’ Location = ‘eastus’ Sku = ‘Standard’ AllocationMethod = ‘static’ + $publicip = New-AzPublictpAddress @ip wh Create bastion host # $bastion = @{ ResourceGroupName = 'TutorGwLB-rg’ Name = ‘myBastion’ PublictpAddress = $publicip VirtualNetwork = $vnet + New-AzBastion @bastion -AsJob Create 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. Use New-AzNetworkSecurityRuleConfig to create rules for the NSG. Use New- AzNetworkSecurityGroup to create the NSG. ‘Azure PowerShell it Create rule for network security group and place in variable. $nsgrule1 = @{ Name = ‘myNSGRule-AllowAll" Description = ‘Allow all’ Protocol = '*" SourcePortRange = '** DestinationPortRange = '** SourceAddressPrefix = '0.0.0.¢/@" DestinationaddressPrefix = '0.0.0.0/0' Access = ‘Allow’ Priority = '100" Direction = ‘Inbound" + $rule1 = New-AzNetworkSecurityRuleConfig @nsgrulet ntips:leam microsot.comlon-uslazureload-balancerutora-gateway-powershell a 31125724, 752 PM “utoria Create a gateway load balancer - Azure PowerShel - Azure Load Balancer | Microsof Lear $nsgrule2 = @( Name = ‘nyNSGRuLe-AllowAl1-TcP-out' Description = ‘Allow all TCP Out’ Protocol = ‘TCP* SourcePortRange = DestinationPortRange = '** SourceAddressPrefix = '0.0.0.0/0° DestinationAddressPrefix = '0.0.0.0/0° Access = ‘Allow’ Priority = '120' Direction = ‘Outbound’ + $rule2 = New-AzNetworkSecurityRuleConfig @nsgrule2 tH Create network security group ## $nsg = @{ Name = ‘myNsG* ResourceGroupName = ‘TutorGwLB-rg’ Location = ‘eastus’ SecurityRules = $rulet,$rule2 + New-AzNetworkSecurityGroup @nsg Create Gateway Load Balancer In this section, you'll create the configuration and deploy the gateway load balancer. Use New-AzLoadBalancerFrontend|pConfig to create the frontend IP configuration of the load balancer. You'll use New-AzLoadBalancerTunnelinterface to create two tunnel interfaces for the load balancer. Create a backend pool with New-AzLoadBalancerBackendAddressPoolConfig for the NVAs. Ahealth probe is required to monitor the health of the backend instances in the load balancer. Use New-AzLoadBalancerProbeConfig to create the health probe. Traffic destined for the backend instances is routed with a load-balancing rule. Use New- AzLoadBalancerRuleConfig to create the load-balancing rule. To create the deploy the load balancer, use New-AzLoadBalancer. Azure PowerShell ntips:leam microsot.comlon-uslazureload-balancerutora-gateway-powershell 491125124, 752 PM “Ttoriat Create a gateway load balancer - Azure PowerShell - Azure Load Balancer | Microsoft Le it Place virtual network configuration in a variable for later use. #i $net = @ Name = 'myVNet* ResourceGroupName = ‘TutorGwLB-rg’ + $vnet = Get-AzVirtualNetwork @net i## Create load balancer frontend configuration and place in variable. ## $fe = @ Name = ‘myFrontend’ SubnetId = $vnet.subnets[@].id + $feip = New-AzLoadBalancerFrontendIpConfig @fe ### Create backend address pool configuration and place in variable. ## $intd = @ Type = ‘Internal’ Protocol = 'Vxlan* Identifier = "800° Port = '10800° y $tunnelInterfacel = New-AzLoadBalancerBackendAddressPoolTunnelinterfaceConfig @inta $int2 = @ Type = ‘External’ Protocol = 'Vxlan" Identifier = ‘802° Port = ‘10801° > $tunnelInterface2 = New-AzLoadBalancerBackendAddressPoolTunnelInterfaceConfig @int2 $po0l = @ Name = ‘nyBackendPool" Tunnelinterface = $tunnelinterface1,$tunnelinterface2 } $bepool = New-AzLoadBalancerBackendAddressPoolConfig @pool ## Create the health probe and place in variable. ## $probe = @ Nane = ‘nyHiealthProbe" Protocol = ‘http’ Port = ‘80° IntervalInSeconds = '360" ProbeCount = '5" RequestPath = '/* 3 $healthprobe = New-AzLoadBalancerProbeConfig @probe ntips:leam microsot.comlon-uslazureload-balancerutora-gateway-powershell 591125724, 752 PM “utoria Create a gateway load balancer - Azure PowerShel - Azure Load Balancer | Microsof Lear 4H Create the load balancer rule and place in variable. ## $para = @ Name = ‘nyLBRule’ Protocol = ‘Al1' FrontendPort BackendPort = "0" FrontendIpConfiguration = $feip BackendAddressPool = $bepool Probe = $healthprobe + $rule = New-AzLoadBalancerRuleConfig @para ### Create the load balancer resource. ## $1b = @ ResourceGroupName = ‘TutorGwlB-rg" Name = ‘myLoadBalancer-gw' Location Sku = ‘Gateway' LoadBalancingRule = $rule FrontendIpConfiguration = $feip BackendAddressPool = $bepool Probe = $healthprobe "eastus’ + New-AzLoadBalancer @1b 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 Add-AzVMNetworkinterface 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 Set-AzLoadBalancerFrontendlpConfig to chain the gateway load balancer frontend to your existing load balancer. ntips:leam microsot.comlon-uslazureload-balancerutora-gateway-powershell 69125124, 752 PM “Tutoriat Create a gateway oad balancer - Azure PowerShell - Azure Load Balancer | Micrasof Leam ‘Azure PowerShell ‘## Place the gateway load balancer configuration into a variable. HH $pari = @ ResourceGroupName = ‘TutorGwLB-rg’ Name = ‘myloadBalancer-gw' y Seuld Get-AzLoadBalancer @par1 th Place the existing load balancer into 2 variable. ## $par2 = @( ResourceGroupName = 'CreatePubLags-rg" Name = ‘myloadBalancer* 3 $lb = Get-azLoadBalancer @par2 HH Place the existing public IP for the existing load balancer into a variable. $par3 = @ ResourceGroupName = ‘CreatePubLegs-re" Name = ‘nyPublicIP" t $publicIP = Get-AzPublictPAddress @par3 i Chain the gateway load balancer to your existing load balancer frontend. ## $para = @ Name myFronténdIP" PubliciPAddress = $publiciP LoadBalancer = $1b GatewayLoadBalancerId = $gulb.FrontendIpConfigurations. Id y $config = Set-AzLoadBalancerFrontendIpConfig @para $config | Set-AzLoadBalancer Chain virtual machine to Gateway Load Balancer Alternatively, you can chain a VM's NIC IP configuration to the gateway load balancer. You'll add the gateway load balancer's frontend to an existing VM's NIC IP configuration. Use Set-AzNetworkinterfacelpConfig to chain the gateway load balancer frontend to your existing VM’s NIC IP configuration. Azure PowerShell ntips:leam microsot.comlon-uslazureload-balancertutora-gateway-powershell 719125124, 752 PM “Tutoriat Create a gateway load balancer - Azure PowerShell - Azure Load Balancer | Micrasof Leam WH Place the gateway load balancer configuration into a variable. ## $par1 = @ ResourceGroupName = 'TutorGwLB-rg' Name = ‘myLoadBalancer-gw' + $gwlb = Get-AzLoadBalancer @part it Place the existing NIC into a variable. ## $par2 = @( ResourceGroupName = ‘MyResourceGroup" Name = ‘myNic* 3 $nic = Get-AzNetworkInterface @par2 #% Chain the gateway load balancer to your existing VM NIC. ## $par3 = @ Nane = ‘nyTPconfig* NetworkInterface = $nic GatewayLoadBalancerId = $gwlb.FrontendIpConfigurations.Id } $config = Set-AzNetworkInterfaceIpConfig @par3 $config | Set-AzNetworkinterface Clean up resources When no longer needed, you can use the Remove-AzResourceGroup command to remove the resource group, load balancer, and the remaining resources. ‘Azure PowerShell Remove-AzResourceGroup -Name ‘TutorGwLB-rg" Next steps Create Network Virtual Appliances in Azure. When creating the NVAs, choose the resources created in this tutorial: © Virtual network Subnet ntips:leam microsot.comlon-uslazureload-balancerutora-gateway-powershell 89125124, 752 PM “Tutoriat Create a gateway lad balancer - Azure PowerShell - Azure Load Balancer | Microsoft Le © Network security group * Gateway Load Balancer Advance to the next article to learn how to create a cross-region Azure Load Balancer. ntips:leam microsot.comlon-uslazureload-balancerutora-gateway-powershell 9
You might also like
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
Compare Support Plans - Developer, Business, Enterprise - AWS Support
PDF
No ratings yet
Compare Support Plans - Developer, Business, Enterprise - AWS Support
5 pages
Microsoft 10972 Administering The Web Server IIS Role of Windows Server
PDF
No ratings yet
Microsoft 10972 Administering The Web Server IIS Role of Windows Server
5 pages
Create A Gateway Load Balancer Using The Azure CLI
PDF
No ratings yet
Create A Gateway Load Balancer Using The Azure CLI
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
Azure Win VM Terraform LAB
PDF
No ratings yet
Azure Win VM Terraform LAB
10 pages
Implementing Virtual Machines
PDF
No ratings yet
Implementing Virtual Machines
26 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
Planning and Provisioning Office 365
PDF
No ratings yet
Planning and Provisioning Office 365
37 pages
System Design
PDF
No ratings yet
System Design
11 pages
Azure Application Gateway and Azure WAF
PDF
No ratings yet
Azure Application Gateway and Azure WAF
29 pages
Altaro PowerShell Hyper V Cookbook
PDF
No ratings yet
Altaro PowerShell Hyper V Cookbook
63 pages
Azure DDoS Network Protection
PDF
No ratings yet
Azure DDoS Network Protection
9 pages
Cross Tenant Migration Trust Setup
PDF
No ratings yet
Cross Tenant Migration Trust Setup
34 pages
Azure Architecturing PDF
PDF
No ratings yet
Azure Architecturing PDF
113 pages
Azure IAM
PDF
No ratings yet
Azure IAM
3 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
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
Windows Server 2008 Group Policy Settings
PDF
100% (4)
Windows Server 2008 Group Policy Settings
344 pages
Exercise 3 Configure Identity Protection PDF
PDF
No ratings yet
Exercise 3 Configure Identity Protection PDF
3 pages
AZ-104 StudyGuide ENU FY23Q3 v2
PDF
No ratings yet
AZ-104 StudyGuide ENU FY23Q3 v2
12 pages
Lab 04 - Implement Virtual Networking
PDF
No ratings yet
Lab 04 - Implement Virtual Networking
8 pages
MS100 PDF
PDF
No ratings yet
MS100 PDF
19 pages
WVD Deployment (HOW) Guide-V1.2
PDF
No ratings yet
WVD Deployment (HOW) Guide-V1.2
80 pages
OpManager Installation Guide
PDF
No ratings yet
OpManager Installation Guide
42 pages
AZ-104-MicrosoftAzureAdministrator LAB 02a Manage Subscriptions and RBAC
PDF
No ratings yet
AZ-104-MicrosoftAzureAdministrator LAB 02a Manage Subscriptions and RBAC
7 pages
Opmanager Userguide
PDF
No ratings yet
Opmanager Userguide
385 pages
How To - Integrate OpManager With Cyberoam
PDF
No ratings yet
How To - Integrate OpManager With Cyberoam
7 pages
Lab 01 - Manage Azure Active Directory Identities
PDF
No ratings yet
Lab 01 - Manage Azure Active Directory Identities
9 pages
Az 104t00a Enu Powerpoint 08
PDF
No ratings yet
Az 104t00a Enu Powerpoint 08
39 pages
Endpoint Admin Guide
PDF
No ratings yet
Endpoint Admin Guide
15 pages
Windows Virtual Machines Overview - Azure - Microsoft Docs PDF
PDF
No ratings yet
Windows Virtual Machines Overview - Azure - Microsoft Docs PDF
1,071 pages
Azure Docu PDF
PDF
No ratings yet
Azure Docu PDF
349 pages
Azure Cloud Engineer New
PDF
No ratings yet
Azure Cloud Engineer New
2 pages
ARM Templates
PDF
No ratings yet
ARM Templates
3 pages
Implementing Microsoft Azure Infrastructure Solutions: Exam 70-533
PDF
No ratings yet
Implementing Microsoft Azure Infrastructure Solutions: Exam 70-533
99 pages
Exchange 2013 Step by Step
PDF
100% (1)
Exchange 2013 Step by Step
26 pages
AZ 140T00A ENU Powerpoint 01
PDF
No ratings yet
AZ 140T00A ENU Powerpoint 01
22 pages
Azure Sentinel v1.5
PDF
No ratings yet
Azure Sentinel v1.5
25 pages
Az 400t00a Enu Powerpoint 03
PDF
No ratings yet
Az 400t00a Enu Powerpoint 03
85 pages
Azure Topics
PDF
No ratings yet
Azure Topics
108 pages
Mod 12 - Lab - Implement Azure File Sync
PDF
No ratings yet
Mod 12 - Lab - Implement Azure File Sync
8 pages
Opmanager User Guide
PDF
No ratings yet
Opmanager User Guide
185 pages
Azure
PDF
No ratings yet
Azure
143 pages
Adfs O365
PDF
No ratings yet
Adfs O365
10 pages
AZ 104T00A ENU StudyGuide
PDF
No ratings yet
AZ 104T00A ENU StudyGuide
13 pages
ACS Azure Case Reference Guide
PDF
No ratings yet
ACS Azure Case Reference Guide
29 pages
Mod 2 - Lab - Deploy and Manage Virtual Machines
PDF
No ratings yet
Mod 2 - Lab - Deploy and Manage Virtual Machines
12 pages
Zadara VMware Veam Hybrid Cloud
PDF
No ratings yet
Zadara VMware Veam Hybrid Cloud
42 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
Microsoft 365 Troubleshoot Admintoc 2
PDF
No ratings yet
Microsoft 365 Troubleshoot Admintoc 2
462 pages
IPsec VPN To Microsoft Azure
PDF
No ratings yet
IPsec VPN To Microsoft Azure
9 pages
Office365 PowerShell Cheatsheet by Patrick Lambert
PDF
No ratings yet
Office365 PowerShell Cheatsheet by Patrick Lambert
2 pages
Group Policy The Ultimate Guide - Active Directory Pro
PDF
No ratings yet
Group Policy The Ultimate Guide - Active Directory Pro
42 pages
WS-011 Windows Server 2019 Administration
PDF
No ratings yet
WS-011 Windows Server 2019 Administration
73 pages
How To Install, Setup and Configure Microsoft Exchange Server 2010
PDF
No ratings yet
How To Install, Setup and Configure Microsoft Exchange Server 2010
43 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
Create An Internal Load Balancer Via CLI
PDF
No ratings yet
Create An Internal Load Balancer Via CLI
12 pages
Az 104t00a Enu Powerpoint 06
PDF
No ratings yet
Az 104t00a Enu Powerpoint 06
33 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
Configure Outbound Connectivity With A Gateway Load Balancer
PDF
No ratings yet
Configure Outbound Connectivity With A Gateway Load Balancer
7 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
Create, Download, and List Blobs With Azure CLI
PDF
No ratings yet
Create, Download, and List Blobs With Azure CLI
6 pages
Recover Deleted Storage Account
PDF
No ratings yet
Recover Deleted Storage Account
3 pages
Migrate From Inbound NAT Pools To NAT Rules
PDF
No ratings yet
Migrate From Inbound NAT Pools To NAT Rules
4 pages
Use Azure Storage Explorer To Create A Blob
PDF
No ratings yet
Use Azure Storage Explorer To Create A Blob
8 pages
Create An Internal Load Balancer Via Bicep
PDF
No ratings yet
Create An Internal Load Balancer Via Bicep
7 pages
Identity Integrations
PDF
No ratings yet
Identity Integrations
7 pages
Azure Blob Storage Client Library For C++
PDF
No ratings yet
Azure Blob Storage Client Library For C++
11 pages
Azure Blob Storage Client Library For Java
PDF
No ratings yet
Azure Blob Storage Client Library For Java
16 pages
Introduction To Azure Blob Storage
PDF
No ratings yet
Introduction To Azure Blob Storage
6 pages
Blob Storage Feature Support in Azure Storage Accounts
PDF
No ratings yet
Blob Storage Feature Support in Azure Storage Accounts
6 pages
Azure Blob Storage Client Library For Python
PDF
No ratings yet
Azure Blob Storage Client Library For Python
13 pages
Integrate With Zero Trust Solutions
PDF
No ratings yet
Integrate With Zero Trust Solutions
1 page
Zero Trust Principles To An Azure Virtual WAN
PDF
No ratings yet
Zero Trust Principles To An Azure Virtual WAN
17 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
What Is Azure Blob Storage
PDF
No ratings yet
What Is Azure Blob Storage
2 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 Linux VM Portal LAB
PDF
No ratings yet
Azure Linux VM Portal LAB
7 pages
Azure VM Overview
PDF
No ratings yet
Azure VM Overview
9 pages