Skip to content

Commit ce3e90d

Browse files
authored
Merge pull request #294925 from mbender-ms/lb-crlb-ado375585
load balancer | UUF Maintenance | update cross-subscription-how-to-global-backend
2 parents 27fe97b + 9ac895c commit ce3e90d

File tree

3 files changed

+62
-61
lines changed

3 files changed

+62
-61
lines changed

articles/load-balancer/cross-region-overview.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: load-balancer
66
author: mbender-ms
77
ms.service: azure-load-balancer
88
ms.topic: concept-article
9-
ms.date: 06/26/2024
9+
ms.date: 02/20/2025
1010
ms.author: mbender
1111
ms.custom: references_regions
1212
---
@@ -34,7 +34,7 @@ The frontend IP configuration of your global load balancer is static and adverti
3434

3535
Configure regional redundancy by seamlessly linking a global load balancer to your existing regional load balancers.
3636

37-
If one region fails, the traffic is routed to the next closest healthy regional load balancer.
37+
If one region fails, the traffic is routed to the next closest healthy regional load balancer.
3838

3939
The health probe of the global load balancer gathers information about availability of each regional load balancer every 5 seconds. If one regional load balancer drops its availability to 0, global load balancer detects the failure. The regional load balancer is then taken out of rotation.
4040

@@ -55,7 +55,7 @@ If a flow is started from Seattle, traffic enters West US. This region is the cl
5555

5656
Azure global load balancer uses geo-proximity load-balancing algorithm for the routing decision.
5757

58-
The configured load distribution mode of the regional load balancers is used for making the final routing decision when multiple regional load balancers are used for geo-proximity.
58+
The configured load distribution mode of the regional load balancers is used for making the final routing decision when multiple regional load balancers are used for geo-proximity.
5959

6060
For more information, see [Configure the distribution mode for Azure Load Balancer](./load-balancer-distribution-mode.md).
6161

@@ -73,7 +73,7 @@ Global load balancer comes with a static public IP, which ensures the IP address
7373

7474
### Client IP Preservation
7575

76-
Global load balancer is a Layer-4 pass-through network load balancer. This pass-through preserves the original IP of the packet. The original IP is available to the code running on the virtual machine. This preservation allows you to apply logic that is specific to an IP address.
76+
Global load balancer is a Layer-4 pass-through network load balancer. This pass-through preserves the original IP of the packet. The original IP is available to the code running on the virtual machine. This preservation allows you to apply logic that is specific to an IP address.
7777

7878
### Floating IP
7979

@@ -83,7 +83,7 @@ It's important to note that floating IP configured on the Azure global Load Bala
8383

8484
### Health Probes
8585

86-
Azure global Load Balancer utilizes the health of the backend regional load balancers when deciding where to distribute traffic to. Health checks by global load balancer are done automatically every 5 seconds, given that health probes are set up on their regional load balancer.
86+
Azure global Load Balancer utilizes the health of the backend regional load balancers when deciding where to distribute traffic to. Health checks by global load balancer are done automatically every 5 seconds, given that health probes are set up on their regional load balancer.
8787

8888
## Build cross region solution on existing Azure Load Balancer
8989

@@ -145,7 +145,7 @@ Global load balancer routes the traffic to the appropriate regional load balance
145145
* West US 2
146146

147147
> [!NOTE]
148-
> The backend regional load balancers can be deployed in any publicly available Azure Region and is not limited to just participating regions.
148+
> The backend regional load balancers can be deployed in any publicly available Azure Region and isn't limited to just participating regions.
149149
150150
## Limitations of global load balancer
151151

articles/load-balancer/cross-subscription-how-to-global-backend.md

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: load-balancer
66
author: mbender-ms
77
ms.service: azure-load-balancer
88
ms.topic: how-to
9-
ms.date: 10/17/2024
9+
ms.date: 02/20/2025
1010
ms.author: mbender
1111
ms.custom: devx-track-azurepowershell
1212
---
@@ -23,8 +23,8 @@ A [cross-subscription load balancer](cross-subscription-overview.md) can referen
2323

2424
- Two Azure subscriptions.
2525
- An Azure account with active subscriptions. [Create an account for free](https://azure.microsoft.com/free/)
26-
- A global public IP address deployed in **Azure Subscription A**.
27-
- A regional load balancer deployed in **Azure Subscription B**.
26+
- A global public IP address deployed in **Azure Subscription A** located in a [Global load balancer home region](cross-subscription-how-to-global-backend.md).
27+
- A regional load balancer deployed in **Azure Subscription A**.
2828
- Azure PowerShell installed locally or Azure Cloud Shell.
2929

3030
If you choose to install and use PowerShell locally, this article requires the Azure PowerShell module version 5.4.1 or later. Run `Get-Module -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.
@@ -38,8 +38,8 @@ If you choose to install and use PowerShell locally, this article requires the A
3838

3939
- Two Azure subscriptions. One subscription for the virtual network (**Azure Subscription A**) and another subscription for the load balancer(**Azure Subscription B**).
4040
- An Azure account with active subscriptions. [Create an account for free](https://azure.microsoft.com/free/)
41-
- A global public IP address deployed in **Azure Subscription A**.
42-
- A regional load balancer deployed in **Azure Subscription B**.
41+
- A global public IP address deployed in **Azure Subscription A** located in a [Global load balancer home region](cross-subscription-how-to-global-backend.md).
42+
- A regional load balancer deployed in **Azure Subscription A**. For this example, the load balancer is called **load-balancer-regional** in a resource group called **resource-group-a**.
4343

4444
[!INCLUDE [azure-cli-prepare-your-environment.md](~/reusable-content/azure-cli/azure-cli-prepare-your-environment-no-header.md)]
4545

@@ -55,7 +55,7 @@ If you choose to install and use the CLI locally, this quickstart requires Azure
5555

5656
# [Azure PowerShell](#tab/azurepowershell)
5757

58-
With Azure PowerShell, you sign into Azure with [`Connect-AzAccount`](/powershell/module/az.accounts/connect-azaccount), and change your subscription context with [`Set-AzContext`](/powershell/module/az.accounts/set-azcontext) to **Azure Subscription A**. Then get the regional load balancer information with [`Get-AzLoadBalancer`](/powershell/module/az.network/get-azloadbalancer) and [`Get-AzLoadBalancerFrontendIpConfig](/powershell/module/az.network/get-azloadbalancerfrontendipconfig). You need the Azure subscription ID, resource group name, and virtual network name from your environment.
58+
With Azure PowerShell, you sign into Azure with [`Connect-AzAccount`](/powershell/module/az.accounts/connect-azaccount), and change your subscription context with [`Set-AzContext`](/powershell/module/az.accounts/set-azcontext) to **Azure Subscription A**. Then get the regional load balancer information with [`Get-AzLoadBalancer`](/powershell/module/az.network/get-azloadbalancer) and [`Get-AzLoadBalancerFrontendIpConfig`](/powershell/module/az.network/get-azloadbalancerfrontendipconfig). You need the Azure subscription ID, resource group name, and virtual network name from your environment.
5959

6060

6161
```azurepowershell
@@ -64,15 +64,15 @@ With Azure PowerShell, you sign into Azure with [`Connect-AzAccount`](/powershel
6464
Connect-AzAccount
6565
6666
# Set the subscription context to Azure Subscription A
67-
Set-AzContext -Subscription '<Azure Subscription A>'
67+
Set-AzContext -Subscription '<Subscription ID of Subscription A>'
6868
6969
# Get the Virtual Network information with Get-AzVirtualNetwork
7070
$rlb= @{
71-
Name = '<regional load balancer name>'
72-
ResourceGroupName = '<Resource Group Subscription A>'
71+
Name = 'load-balancer-regional'
72+
ResourceGroupName = 'resource-group-a'
7373
}
74-
$RLB-info = Get-AzLoadBalancer @rlb
75-
$RLBFE = Get-AzLoadBalancerFrontendIpConfig @ RLB-info
74+
$rlbinfo = Get-AzLoadBalancer @rlb
75+
$rlbfe = Get-AzLoadBalancerFrontendIpConfig @rlbinfo
7676
7777
```
7878

@@ -86,7 +86,7 @@ With Azure CLI, you'll sign into Azure with [az login](/cli/azure/reference-inde
8686
8787
# Sign in to Azure CLI and change subscription to Azure Subscription B
8888
Az login
89-
Az account set –subscription <Azure Subscription A>
89+
Az account set –subscription '<Subscription ID of Subscription B>'
9090
```
9191

9292
---
@@ -106,21 +106,21 @@ Set-AzContext -Subscription '<Azure Subscription B>'
106106
107107
# Create a resource group
108108
$rg = @{
109-
Name = 'myResourceGroupLB'
110-
Location = 'westus'
109+
Name = 'resource-group-b'
110+
Location = 'eastus2'
111111
}
112112
New-AzResourceGroup @rg
113113
```
114114
> [!NOTE]
115-
> When create the resource group for your load balancer, use the same Azure region as the virtual network in **Azure Subscription A**.
115+
> When creating the resource group for your load balancer, use the same Azure region as the virtual network in **Azure Subscription A**.
116116
117117
# [Azure CLI](#tab/azurecli/)
118118

119119
With Azure CLI, you switch the subscription context with [`az account set`](/cli/azure/account#az_account_set) and create a resource group with [`az group create`](/cli/azure/group#az_group_create).
120120

121121
```azurecli
122122
# Create a resource group in Azure Subscription B
123-
az group create --name 'myResourceGroupLB' --location westus
123+
az group create --name resource-group-b --location eastus2
124124
```
125125

126126
> [!NOTE]
@@ -130,8 +130,8 @@ az group create --name 'myResourceGroupLB' --location westus
130130

131131
## Create a global load balancer
132132

133-
In this section, you create the resources needed for the cross-region load balancer.
134-
A global standard sku public IP is used for the frontend of the cross-region load balancer.
133+
In this section, you create the resources needed for the global load balancer.
134+
A global standard sku public IP is used for the frontend of the global load balancer.
135135

136136
# [Azure PowerShell](#tab/azurepowershell)
137137

@@ -146,8 +146,8 @@ With Azure PowerShell, you:
146146
```azurepowershell
147147
# Create global IP address for load balancer
148148
$ip = @{
149-
Name = 'myPublicIP-CR'
150-
ResourceGroupName = ‘ Resource Group B’
149+
Name = 'public-IP-global'
150+
ResourceGroupName = 'resource-group-b'
151151
Location = 'eastus2'
152152
Sku = 'Standard'
153153
Tier = 'Global'
@@ -157,20 +157,20 @@ $publicIP = New-AzPublicIpAddress @ip
157157
158158
# Create frontend configuration
159159
$fe = @{
160-
Name = 'myFrontEnd-CR'
160+
Name = 'front-end-config-global'
161161
PublicIpAddress = $publicIP
162162
}
163163
$feip = New-AzLoadBalancerFrontendIpConfig @fe
164164
165165
# Create backend address pool
166166
$be = @{
167-
Name = 'myBackEndPool-CR'
167+
Name = 'backend-pool-global'
168168
}
169169
$bepool = New-AzLoadBalancerBackendAddressPoolConfig @be
170170
171171
# Create the load balancer rule
172172
$rul = @{
173-
Name = 'myHTTPRule-CR'
173+
Name = 'HTTP-rule-global'
174174
Protocol = 'tcp'
175175
FrontendPort = '80'
176176
BackendPort = '80'
@@ -179,10 +179,10 @@ $rul = @{
179179
}
180180
$rule = New-AzLoadBalancerRuleConfig @rul
181181
182-
# Create cross-region load balancer resource
182+
# Create global load balancer resource
183183
$lbp = @{
184-
ResourceGroupName = ‘ Resource Group B’
185-
Name = 'myLoadBalancer-CR'
184+
ResourceGroupName = 'resource-group-b'
185+
Name = 'load-balancer-global'
186186
Location = ‘eastus2’
187187
Sku = 'Standard'
188188
Tier = 'Global'
@@ -197,45 +197,45 @@ $lb = New-AzLoadBalancer @lbp
197197

198198
With Azure CLI, you:
199199

200-
- Create a cross-region load balancer with [`az network cross-region-lb create`](/cli/azure/network/cross-region-lb#az-network-cross-region-lb-create).
200+
- Create a global load balancer with [`az network cross-region-lb create`](/cli/azure/network/cross-region-lb#az-network-cross-region-lb-create).
201201
- Create a load balancer rule with [`az network cross-region-lb rule create`](/cli/azure/network/cross-region-lb#az-network-cross-region-lb-rule-create).
202202

203203
```azurecli
204204
205-
# Create cross-region load balancer
206-
az network cross-region-lb create --name myLoadBalancer-CR --resource-group myResourceGroupLB-CR --frontend-ip-name myFrontEnd-CR --backend-pool-name myBackEndPool-CR
205+
# Create global load balancer
206+
az network cross-region-lb create --name load-balancer-global --resource-group resource-group-b --frontend-ip-name front-end-config-global --backend-pool-name backend-pool-global
207207
208208
# create a load balancer rule
209-
az network cross-region-lb rule create --backend-port 80 --frontend-port 80 --lb-name myLoadBalancer-CR --name myHTTPRule-CR --protocol tcp --resource-group myResourceGroupLB-CR --backend-pool-name myBackEndPool-CR --frontend-ip-name myFrontEnd-CR
209+
az network cross-region-lb rule create --backend-port 80 --frontend-port 80 --lb-name load-balancer-global --name HTTP-rule-global --protocol tcp --resource-group resource-group-b --backend-pool-name backend-pool-global --frontend-ip-name front-end-config-global
210210
211211
```
212212
---
213213

214-
## Add load balancer frontends to cross-region load balancer
214+
## Add load balancer frontends to global load balancer
215215

216-
In this section, you add a frontend IP configuration to the cross-region load balancer.
216+
In this section, you add a frontend IP configuration to the global load balancer.
217217

218218
# [Azure PowerShell](#tab/azurepowershell)
219219

220220
With Azure PowerShell, you:
221221

222-
- Use [`Set-AzLoadBalancerFrontendIpConfig`](/powershell/module/az.network/set-azloadbalancerfrontendipconfig) to add the regional load balancer frontend to the cross-region backend pool.
222+
- Use [`Set-AzLoadBalancerFrontendIpConfig`](/powershell/module/az.network/set-azloadbalancerfrontendipconfig) to add the regional load balancer frontend to the global backend pool.
223223
- Use [`New-AzLoadBalancerBackendAddressConfig`](/powershell/module/az.network/new-azloadbalancerbackendaddressconfig) to create the backend address pool configuration for the load balancer.
224224

225225
```azurepowershell
226226
227-
## Create the cross-region backend address pool configuration for region 2 ##
228-
$RLB-BAF = @{
229-
Name = 'MyBackendPoolConfig-RLB'
230-
LoadBalancerFrontendIPConfigurationId = $RLBFE.Id
227+
## Create the global backend address pool configuration for region 2 ##
228+
$rlbbaf = @{
229+
Name = 'backend-pool-config-regional'
230+
LoadBalancerFrontendIPConfigurationId = $rlbfe.Id
231231
}
232232
$beaddressconfigRLB = New-AzLoadBalancerBackendAddressConfig @region2ap
233233
234-
## Apply the backend address pool configuration for the cross-region load balancer ##
234+
## Apply the backend address pool configuration for the global load balancer ##
235235
$bepoolcr = @{
236-
ResourceGroupName = ‘ Resource Group B’
237-
LoadBalancerName = 'myLoadBalancer-CR'
238-
Name = 'myBackEndPool-CR'
236+
ResourceGroupName = 'resource-group-b'
237+
LoadBalancerName = 'load-balancer-global'
238+
Name = 'backend-pool-global'
239239
LoadBalancerBackendAddress = $beaddressconfigRLB
240240
}
241241
Set-AzLoadBalancerBackendAddressPool @bepoolcr
@@ -244,16 +244,16 @@ Set-AzLoadBalancerBackendAddressPool @bepoolcr
244244

245245
# [Azure CLI](#tab/azurecli/)
246246

247-
With Azure CLI, you add the frontends you placed in variables in the backend pool of the cross-region load balancer with use [`az network cross-region-lb address-pool`](/cli/azure/network/cross-region-lb#az-network-cross-region-lb-address-pool).
247+
With Azure CLI, you add the frontends you placed in variables in the backend pool of the global load balancer with use [`az network cross-region-lb address-pool`](/cli/azure/network/cross-region-lb#az-network-cross-region-lb-address-pool).
248248

249249
```azurecli
250250
251251
az network cross-region-lb address-pool address add \
252-
--frontend-ip-address ‘/subscriptions/Subscription A/resourceGroups/rg-name/providers/Microsoft.Network/loadBalancers/RLB-name /frontendIPConfigurations/RLB-LB Frontend Name’
253-
--lb-name myLoadBalancer-CR \
252+
--frontend-ip-address ‘/subscriptions/Subscription A/resourceGroups/rg-name/providers/Microsoft.Network/loadBalancers/rlb-name /frontendIPConfigurations/rlb-lb Frontend Name’
253+
--lb-name load-balancer-global \
254254
--name myFrontEnd-R2 \
255-
--pool-name myBackEndPool-CR \
256-
--resource-group myResourceGroupLB-CR
255+
--pool-name backend-pool-global \
256+
--resource-group resource-group-b
257257
```
258258

259259
## Next steps

0 commit comments

Comments
 (0)