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
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
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 365 Troubleshoot Admintoc 2
PDF
No ratings yet
Microsoft 365 Troubleshoot Admintoc 2
462 pages
Day-9&10-Group Policy
PDF
No ratings yet
Day-9&10-Group Policy
16 pages
The Ultimate Guide of SSL
PDF
No ratings yet
The Ultimate Guide of SSL
93 pages
Planning and Provisioning Office 365
PDF
No ratings yet
Planning and Provisioning Office 365
37 pages
SSL Certificate in ADFS
PDF
No ratings yet
SSL Certificate in ADFS
3 pages
Terraform On Azure Cloud v9
PDF
No ratings yet
Terraform On Azure Cloud v9
369 pages
Lesson - 03 - Implement and Manage Storage
PDF
No ratings yet
Lesson - 03 - Implement and Manage Storage
61 pages
Transparent Mode Fortigate Getting Started 52
PDF
100% (1)
Transparent Mode Fortigate Getting Started 52
84 pages
Azure MS Docs PDF
PDF
No ratings yet
Azure MS Docs PDF
766 pages
Ad Health
PDF
No ratings yet
Ad Health
27 pages
Remote Desktop Services Deployment Guide
PDF
No ratings yet
Remote Desktop Services Deployment Guide
94 pages
Day 8 AD III
PDF
No ratings yet
Day 8 AD III
10 pages
FortiManager 7.2.4 Administration Guide
PDF
No ratings yet
FortiManager 7.2.4 Administration Guide
916 pages
System Design
PDF
No ratings yet
System Design
11 pages
Exchange 2013 Step by Step
PDF
100% (1)
Exchange 2013 Step by Step
26 pages
2019 Troopers SecuringActiveDirectoryAdministration Metcalf Final
PDF
No ratings yet
2019 Troopers SecuringActiveDirectoryAdministration Metcalf Final
128 pages
Azure Win VM Terraform LAB
PDF
No ratings yet
Azure Win VM Terraform LAB
10 pages
Opmanager User Guide
PDF
No ratings yet
Opmanager User Guide
185 pages
Planning and Implementing Disaster Recovery
PDF
No ratings yet
Planning and Implementing Disaster Recovery
31 pages
Az 104t00a Enu Powerpoint 06
PDF
No ratings yet
Az 104t00a Enu Powerpoint 06
33 pages
Azure Architecturing PDF
PDF
No ratings yet
Azure Architecturing PDF
113 pages
Lab 04 - Implement Virtual Networking
PDF
No ratings yet
Lab 04 - Implement Virtual Networking
8 pages
Partner Membership Center To Partner Center Transition
PDF
No ratings yet
Partner Membership Center To Partner Center Transition
45 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
Azure Cloud Engineer New
PDF
No ratings yet
Azure Cloud Engineer New
2 pages
Step by Step DFS
PDF
No ratings yet
Step by Step DFS
53 pages
# Lab 01 - Manage Azure Active Directory Identities # Student Lab Manual ## Lab Scenario
PDF
100% (1)
# Lab 01 - Manage Azure Active Directory Identities # Student Lab Manual ## Lab Scenario
5 pages
Opmanager Userguide
PDF
No ratings yet
Opmanager Userguide
385 pages
LAB 01-Manage Azure AD Identities
PDF
100% (1)
LAB 01-Manage Azure AD Identities
6 pages
Lab 01 - Manage Azure Active Directory Identities
PDF
No ratings yet
Lab 01 - Manage Azure Active Directory Identities
9 pages
Best Practices For Cisco IOS Devices Hardening
PDF
No ratings yet
Best Practices For Cisco IOS Devices Hardening
54 pages
WS-011 Windows Server 2019 Administration
PDF
No ratings yet
WS-011 Windows Server 2019 Administration
73 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
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
Group Policy The Ultimate Guide - Active Directory Pro
PDF
No ratings yet
Group Policy The Ultimate Guide - Active Directory Pro
42 pages
Azure DDoS Network Protection
PDF
No ratings yet
Azure DDoS Network Protection
9 pages
How To Install An SSL Certificate From A Commercial Certificate Authority - DigitalOcean
PDF
100% (1)
How To Install An SSL Certificate From A Commercial Certificate Authority - DigitalOcean
27 pages
Module 4: Administering and Troubleshooting Exchange Online Lab: Administering and Troubleshooting Exchange Online
PDF
No ratings yet
Module 4: Administering and Troubleshooting Exchange Online Lab: Administering and Troubleshooting Exchange Online
9 pages
Azure Ad Mfa
PDF
No ratings yet
Azure Ad Mfa
14 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
Load Balancing Sur Azure - Fr.en
PDF
No ratings yet
Load Balancing Sur Azure - Fr.en
11 pages
Exchange Powershell
PDF
No ratings yet
Exchange Powershell
6 pages
FW3505 19.5v1 Introducing Authentication On Sophos Firewall
PDF
No ratings yet
FW3505 19.5v1 Introducing Authentication On Sophos Firewall
17 pages
Azure Topics
PDF
No ratings yet
Azure Topics
108 pages
Cross Tenant Migration Trust Setup
PDF
No ratings yet
Cross Tenant Migration Trust Setup
34 pages
Implementing Microsoft Azure Infrastructure Solutions: Exam 70-533
PDF
No ratings yet
Implementing Microsoft Azure Infrastructure Solutions: Exam 70-533
99 pages
Create An Internal Load Balancer Via CLI
PDF
No ratings yet
Create An Internal Load Balancer Via CLI
12 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
Mod 4 - Lab - Configure Azure DNS
PDF
No ratings yet
Mod 4 - Lab - Configure Azure DNS
6 pages
How To - Integrate OpManager With Cyberoam
PDF
No ratings yet
How To - Integrate OpManager With Cyberoam
7 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
Azure Application Gateway and Azure WAF
PDF
No ratings yet
Azure Application Gateway and Azure WAF
29 pages
Integrate With Zero Trust Solutions
PDF
No ratings yet
Integrate With Zero Trust Solutions
1 page
Create A Fully Qualified Domain Name For A VM
PDF
No ratings yet
Create A Fully Qualified Domain Name For A VM
1 page
Implementing Virtual Machines
PDF
No ratings yet
Implementing Virtual Machines
26 pages
The Exchange 2016 Preferred Architecture
PDF
No ratings yet
The Exchange 2016 Preferred Architecture
5 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
ACS Azure Case Reference Guide
PDF
No ratings yet
ACS Azure Case Reference Guide
29 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
Compare Support Plans - Developer, Business, Enterprise - AWS Support
PDF
No ratings yet
Compare Support Plans - Developer, Business, Enterprise - AWS Support
5 pages
Zero Trust Principles To An Azure Virtual WAN
PDF
No ratings yet
Zero Trust Principles To An Azure Virtual WAN
17 pages
Azure Blob Storage Client Library For Java
PDF
No ratings yet
Azure Blob Storage Client Library For Java
16 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
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
Azure Blob Storage Client Library For Python
PDF
No ratings yet
Azure Blob Storage Client Library For Python
13 pages
Azure Blob Storage Client Library For C++
PDF
No ratings yet
Azure Blob Storage Client Library For C++
11 pages
Azure VM Overview
PDF
No ratings yet
Azure VM Overview
9 pages
Use Azure Storage Explorer To Create A Blob
PDF
No ratings yet
Use Azure Storage Explorer To Create A Blob
8 pages
Azure Win VM Portal LAB
PDF
No ratings yet
Azure Win VM Portal LAB
8 pages
Step by Step Radius Windows
PDF
100% (1)
Step by Step Radius Windows
55 pages
Azure Linux VM Portal LAB
PDF
No ratings yet
Azure Linux VM Portal LAB
7 pages
DNS Name Resolution
PDF
No ratings yet
DNS Name Resolution
7 pages
Create, Download, and List Blobs With Azure CLI
PDF
No ratings yet
Create, Download, and List Blobs With Azure CLI
6 pages
Migrate From Inbound NAT Pools To NAT Rules
PDF
No ratings yet
Migrate From Inbound NAT Pools To NAT Rules
4 pages
Virtual Machine With A Static Public IP Address
PDF
No ratings yet
Virtual Machine With A Static Public IP Address
4 pages
Configure Outbound Connectivity With A Gateway Load Balancer
PDF
No ratings yet
Configure Outbound Connectivity With A Gateway Load Balancer
7 pages
Create An Internal Load Balancer Via Bicep
PDF
No ratings yet
Create An Internal Load Balancer Via Bicep
7 pages
Recover Deleted Storage Account
PDF
No ratings yet
Recover Deleted Storage Account
3 pages
Blob Storage Feature Support in Azure Storage Accounts
PDF
No ratings yet
Blob Storage Feature Support in Azure Storage Accounts
6 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
Introduction To Azure Blob Storage
PDF
No ratings yet
Introduction To Azure Blob Storage
6 pages
Identity Integrations
PDF
No ratings yet
Identity Integrations
7 pages
What Is Azure Blob Storage
PDF
No ratings yet
What Is Azure Blob Storage
2 pages