Skip to content

Commit b25e0c1

Browse files
author
Michael Bender
committed
updated includes
1 parent f7143b5 commit b25e0c1

5 files changed

+74
-157
lines changed

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

Lines changed: 4 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ ms.author: mbender
1111
ms.custom:
1212
---
1313

14-
A cross-subscription load balancer allows the public IP address to reside in a different subscription other than the load balancers.
15-
14+
# Attach a cross-subscription backend to an Azure Load Balancer
1615
In this article, you will learn how to attach a cross-subscription backend to an Azure Load Balancer by creating a cross-subscription backend pool and attaching cross-subscription network interfaces to the backend pool of the load balancer.
1716

17+
A [cross-subscription internal load balancer (ILB)](cross-subscription-load-balancer-overview.md) can reference a virtual network that resides in a different subscription other than the load balancers. This feature allows you to deploy a load balancer in one subscription and reference a virtual network in another subscription.
18+
1819
[!INCLUDE [load-balancer-cross-subscription-preview](../../includes/load-balancer-cross-subscription-preview.md)]
1920

2021
[!INCLUDE [load-balancer-cross-subscription-prerequisites](../../includes/load-balancer-cross-subscription-prerequisites.md)]
@@ -94,44 +95,8 @@ $LB = Get-AzLoadBalancer @LBinfo
9495
# [Azure CLI](#tab/azurecli)
9596

9697
---
97-
## Create a health probe and load balancer rule
98-
99-
Create a health probe that determines the health of the backend VM instances and a load balancer rule that defines the frontend IP configuration for the incoming traffic, the backend IP pool to receive the traffic, and the required source and destination port.
100-
101-
# [Azure PowerShell](#tab/azurepowershell)
102-
103-
With Azure PowerShell, create a health probe with [`Add-AzLoadBalancerProbeConfig`](/powershell/module/az.network/add-azloadbalancerprobeconfig) that determines the health of the backend VM instances. Then create a load balancer rule with [`Add-AzLoadBalancerRuleConfig`](/powershell/module/az.network/add-azloadbalancerruleconfig) that defines the frontend IP configuration for the incoming traffic, the backend IP pool to receive the traffic, and the required source and destination port.
10498

105-
```azurepowershell
106-
## Create the health probe and place in variable
107-
$probe = @{
108-
Name = 'myHealthProbe2'
109-
Protocol = 'tcp'
110-
Port = '80'
111-
IntervalInSeconds = '360'
112-
ProbeCount = '5'
113-
}
114-
$LB | Add-AzLoadBalancerProbeConfig @probe
115-
116-
## Create the load balancer rule and place in variable
117-
$lbrule = @{
118-
Name = 'myHTTPRule2'
119-
Protocol = 'tcp'
120-
FrontendPort = '80'
121-
BackendPort = '80'
122-
IdleTimeoutInMinutes = '15'
123-
FrontendIpConfiguration = $LB.FrontendIpConfigurations[0]
124-
BackendAddressPool = $backend
125-
}
126-
$LB | Add-AzLoadBalancerRuleConfig @lbrule
127-
128-
## Set the load balancer resource
129-
$LB | Set-AzLoadBalancer
130-
```
131-
132-
# [Azure CLI](#tab/azurecli)
133-
134-
---
99+
[!INCLUDE [load-balancer-cross-subscription-health-probe-rules](../../includes/load-balancer-cross-subscription-health-probe-rules.md)]
135100

136101
[!INCLUDE [load-balancer-cross-subscription-add-nic](../../includes/load-balancer-cross-subscription-add-nic.md)]
137102

articles/load-balancer/cross-subscription-how-to-attach-frontend.md

Lines changed: 4 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ ms.custom:
1313

1414
# Attach a cross-subscription frontend to an Azure Load Balancer
1515

16-
A cross-subscription load balancer allows the public IP address to reside in a different subscription other than the load balancers.
17-
1816
In this article, you learn how to create a load balancer in one Azure subscription and attach a frontend IP address from another subscription. You create a resource group for the load balancer and then create a load balancer with a frontend IP address. You also create a backend address pool, health probe, and load balancer rule.
1917

18+
A [cross-subscription internal load balancer (ILB)](cross-subscription-load-balancer-overview.md) can reference a virtual network that resides in a different subscription other than the load balancers. This feature allows you to deploy a load balancer in one subscription and reference a virtual network in another subscription. s.
19+
2020
[!INCLUDE [load-balancer-cross-subscription-preview](../../includes/load-balancer-cross-subscription-preview.md)]
2121

2222
## Prerequisites
@@ -201,70 +201,9 @@ az network lb address-pool update --lb-name myLoadBalancer --resource-group myRe
201201

202202
---
203203

204-
## Create a health probe and load balancer rule
205-
206-
Create a health probe that determines the health of the backend VM instances and a load balancer rule that defines the frontend IP configuration for the incoming traffic, the backend IP pool to receive the traffic, and the required source and destination port.
207-
208-
# [Azure PowerShell](#tab/azurepowershell)
209-
210-
With Azure PowerShell, create a health probe with [`Add-AzLoadBalancerProbeConfig`](/powershell/module/az.network/add-azloadbalancerprobeconfig) that determines the health of the backend VM instances. Then create a load balancer rule with [`Add-AzLoadBalancerRuleConfig`](/powershell/module/az.network/add-azloadbalancerruleconfig) that defines the frontend IP configuration for the incoming traffic, the backend IP pool to receive the traffic, and the required source and destination port.
211-
212-
```azurepowershell
213-
## Create the health probe and place in variable. ##
214-
$probe = @{
215-
Name = 'myHealthProbe2'
216-
Protocol = 'tcp'
217-
Port = '80'
218-
IntervalInSeconds = '360'
219-
ProbeCount = '5'
220-
}
221-
222-
## Create the load balancer rule and place in variable. ##
223-
$lbrule = @{
224-
Name = 'myHTTPRule2'
225-
Protocol = 'tcp'
226-
FrontendPort = '80'
227-
BackendPort = '80'
228-
IdleTimeoutInMinutes = '15'
229-
FrontendIpConfiguration = $LB.FrontendIpConfigurations[0]
230-
BackendAddressPool = $backend
231-
}
232-
## Set the load balancer resource. ##
233-
$LB | Add-AzLoadBalancerProbeConfig @probe
234-
$LB | Add-AzLoadBalancerRuleConfig @lbrule
235-
$LB | Set-AzLoadBalancer
236-
```
237-
# [Azure CLI](#tab/azurecli/)
238-
239-
With Azure CLI, create a health probe with [`az network lb probe create`](/cli/azure/network/lb/probe#az_network_lb_probe_create) that determines the health of the backend VM instances. Then create a load balancer rule with [`az network lb rule create`](/cli/azure/network/lb/rule#az_network_lb_rule_create) that defines the frontend IP configuration for the incoming traffic, the backend IP pool to receive the traffic, and the required source and destination port.
240-
241-
```azurecli
242-
# Create a health probe
243-
az network lb probe create --resource-group myResourceGroupLB --lb-name myLoadBalancer --name myHealthProbe --protocol tcp --port 80
244-
245-
# Create a load balancer rule
246-
az network lb rule create --resource-group myResourceGroupLB --lb-name myLoadBalancer --name myHTTPRule --protocol tcp --frontend-port 80 --backend-port 80 --frontend-ip-name myFrontEnd --backend-pool-name myBackEndPool --probe-name myHealthProbe --disable-outbound-snat true --idle-timeout 15 --enable-tcp-reset true
247-
248-
```
249-
250-
---
251-
252-
## Clean up resources
253-
254-
When no longer needed, you can use the Remove-AzResourceGroup command to remove the resource group, load balancer, and the remaining resources.
255-
256-
# [Azure PowerShell](#tab/azurepowershell)
257-
258-
```azurepowershell
259-
Remove-AzResourceGroup -Name myResourceGroupLB
260-
```
204+
[!INCLUDE [load-balancer-cross-subscription-health-probe-rules](../../includes/load-balancer-cross-subscription-health-probe-rules.md)]
261205

262-
# [Azure CLI](#tab/azurecli)
263-
264-
```azurecli
265-
az group delete --name myResourceGroupLB
266-
```
267-
---
206+
[!INCLUDE [load-balancer-cross-subscription-clean-up](../../includes/load-balancer-cross-subscription-clean-up.md)]
268207

269208
## Next steps
270209

articles/load-balancer/cross-subscription-howto-internal-load-balancer.md

Lines changed: 3 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ ms.custom:
1313

1414
# Create a cross-subscription internal load balancer
1515

16-
A [cross-subscription internal load balancer (ILB)](cross-subscription-load-balancer-overview.md) can reference a virtual network that resides in a different subscription other than the load balancers. This feature allows you to deploy a load balancer in one subscription and reference a virtual network in another subscription.
17-
1816
In this how-to guide, you learn how to create a cross-subscription internal load balancer by connecting a virtual network in a subscription to a load balancer in a different subscription.
1917

18+
A [cross-subscription internal load balancer (ILB)](cross-subscription-load-balancer-overview.md) can reference a virtual network that resides in a different subscription other than the load balancers. This feature allows you to deploy a load balancer in one subscription and reference a virtual network in another subscription.
19+
2020
[!INCLUDE [load-balancer-cross-subscription-preview](../../includes/load-balancer-cross-subscription-preview.md)]
2121

2222
[!INCLUDE [load-balancer-cross-subscription-prerequisites](../../includes/load-balancer-cross-subscription-prerequisites.md)]
@@ -101,53 +101,7 @@ az network lb address-pool update --lb-name myLoadBalancer --resource-group myRe
101101
```
102102
---
103103

104-
## Create a health probe and load balancer rule
105-
106-
Create a health probe that determines the health of the backend VM instances and a load balancer rule that defines the frontend IP configuration for the incoming traffic, the backend IP pool to receive the traffic, and the required source and destination port.
107-
108-
# [Azure PowerShell](#tab/azurepowershell)
109-
110-
With Azure PowerShell, create a health probe with [`Add-AzLoadBalancerProbeConfig`](/powershell/module/az.network/add-azloadbalancerprobeconfig) that determines the health of the backend VM instances. Then create a load balancer rule with [`Add-AzLoadBalancerRuleConfig`](/powershell/module/az.network/add-azloadbalancerruleconfig) that defines the frontend IP configuration for the incoming traffic, the backend IP pool to receive the traffic, and the required source and destination port.
111-
112-
```azurepowershell
113-
## Create the health probe and place in variable. ##
114-
$probe = @{
115-
Name = 'myHealthProbe2'
116-
Protocol = 'tcp'
117-
Port = '80'
118-
IntervalInSeconds = '360'
119-
ProbeCount = '5'
120-
}
121-
122-
## Create the load balancer rule and place in variable. ##
123-
$lbrule = @{
124-
Name = 'myHTTPRule2'
125-
Protocol = 'tcp'
126-
FrontendPort = '80'
127-
BackendPort = '80'
128-
IdleTimeoutInMinutes = '15'
129-
FrontendIpConfiguration = $LB.FrontendIpConfigurations[0]
130-
BackendAddressPool = $backend
131-
}
132-
## Set the load balancer resource. ##
133-
$LB | Add-AzLoadBalancerProbeConfig @probe
134-
$LB | Add-AzLoadBalancerRuleConfig @lbrule
135-
$LB | Set-AzLoadBalancer
136-
```
137-
# [Azure CLI](#tab/azurecli/)
138-
139-
With Azure CLI, create a health probe with [`az network lb probe create`](/cli/azure/network/lb/probe#az_network_lb_probe_create) that determines the health of the backend VM instances. Then create a load balancer rule with [`az network lb rule create`](/cli/azure/network/lb/rule#az_network_lb_rule_create) that defines the frontend IP configuration for the incoming traffic, the backend IP pool to receive the traffic, and the required source and destination port.
140-
141-
```azurecli
142-
# Create a health probe
143-
az network lb probe create --resource-group myResourceGroupLB --lb-name myLoadBalancer --name myHealthProbe --protocol tcp --port 80
144-
145-
# Create a load balancer rule
146-
az network lb rule create --resource-group myResourceGroupLB --lb-name myLoadBalancer --name myHTTPRule --protocol tcp --frontend-port 80 --backend-port 80 --frontend-ip-name myFrontEnd --backend-pool-name myBackEndPool --probe-name myHealthProbe --disable-outbound-snat true --idle-timeout 15 --enable-tcp-reset true
147-
148-
```
149-
150-
---
104+
[!INCLUDE [load-balancer-cross-subscription-health-probe-rules](../../includes/load-balancer-cross-subscription-health-probe-rules.md)]
151105

152106
[!INCLUDE [load-balancer-cross-subscription-add-nic](../../includes/load-balancer-cross-subscription-add-nic.md)]
153107

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
title: include file
3+
description: include file
4+
services: load-balancer
5+
author: mbender
6+
ms.service: load-balancer
7+
ms.topic: include
8+
ms.date: 05/31/2024
9+
ms.author: mbender-ms
10+
ms.custom: include-file
11+
---
12+
13+
## Create a health probe and load balancer rule
14+
15+
Create a health probe that determines the health of the backend VM instances and a load balancer rule that defines the frontend IP configuration for the incoming traffic, the backend IP pool to receive the traffic, and the required source and destination port.
16+
17+
# [Azure PowerShell](#tab/azurepowershell)
18+
19+
With Azure PowerShell, create a health probe with [`Add-AzLoadBalancerProbeConfig`](/powershell/module/az.network/add-azloadbalancerprobeconfig) that determines the health of the backend VM instances. Then create a load balancer rule with [`Add-AzLoadBalancerRuleConfig`](/powershell/module/az.network/add-azloadbalancerruleconfig) that defines the frontend IP configuration for the incoming traffic, the backend IP pool to receive the traffic, and the required source and destination port.
20+
21+
```azurepowershell
22+
## Create the health probe and place in variable. ##
23+
$probe = @{
24+
Name = 'myHealthProbe2'
25+
Protocol = 'tcp'
26+
Port = '80'
27+
IntervalInSeconds = '360'
28+
ProbeCount = '5'
29+
}
30+
31+
## Create the load balancer rule and place in variable. ##
32+
$lbrule = @{
33+
Name = 'myHTTPRule2'
34+
Protocol = 'tcp'
35+
FrontendPort = '80'
36+
BackendPort = '80'
37+
IdleTimeoutInMinutes = '15'
38+
FrontendIpConfiguration = $LB.FrontendIpConfigurations[0]
39+
BackendAddressPool = $backend
40+
}
41+
## Set the load balancer resource. ##
42+
$LB | Add-AzLoadBalancerProbeConfig @probe
43+
$LB | Add-AzLoadBalancerRuleConfig @lbrule
44+
$LB | Set-AzLoadBalancer
45+
```
46+
# [Azure CLI](#tab/azurecli/)
47+
48+
With Azure CLI, create a health probe with [`az network lb probe create`](/cli/azure/network/lb/probe#az_network_lb_probe_create) that determines the health of the backend VM instances. Then create a load balancer rule with [`az network lb rule create`](/cli/azure/network/lb/rule#az_network_lb_rule_create) that defines the frontend IP configuration for the incoming traffic, the backend IP pool to receive the traffic, and the required source and destination port.
49+
50+
```azurecli
51+
# Create a health probe
52+
az network lb probe create --resource-group myResourceGroupLB --lb-name myLoadBalancer --name myHealthProbe --protocol tcp --port 80
53+
54+
# Create a load balancer rule
55+
az network lb rule create --resource-group myResourceGroupLB --lb-name myLoadBalancer --name myHTTPRule --protocol tcp --frontend-port 80 --backend-port 80 --frontend-ip-name myFrontEnd --backend-pool-name myBackEndPool --probe-name myHealthProbe --disable-outbound-snat true --idle-timeout 15 --enable-tcp-reset true
56+
57+
```
58+
59+
---

includes/load-balancer-cross-subscription-prerequisites.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ms.custom: include-file
1616

1717
- Two Azure subscriptions. One subscription for the virtual network and another subscription for the load balancer.
1818
- An Azure account with active subscriptions. [Create an account for free](https://azure.microsoft.com/free/)
19-
- An existing [Virtual Network](../virtual-network/quick-create-powershell.md). deployed in one of the subscriptions. For this example, the virtual network is in **Azure Subscription A**.
19+
- An existing [Virtual Network](../articles/virtual-network/quick-create-powershell.md). deployed in one of the subscriptions. For this example, the virtual network is in **Azure Subscription A**.
2020

2121
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.
2222

@@ -27,11 +27,11 @@ If you choose to install and use PowerShell locally, this article requires the A
2727
2828
# [Azure CLI](#tab/azurecli/)
2929

30-
[!INCLUDE [azure-cli-prepare-your-environment.md](~/reusable-content/azure-cli/azure-cli-prepare-your-environment-no-header.md)]
31-
3230
- Two Azure subscriptions. One subscription for the virtual network (**Azure Subscription A**) and another subscription for the load balancer(**Azure Subscription B**).
3331
- An Azure account with active subscriptions. [Create an account for free](https://azure.microsoft.com/free/)
34-
- An existing [Virtual Network](../virtual-network/quick-create-cli.md). deployed in one of the subscriptions. For this example, the virtual network is in **Azure Subscription A**.
32+
- An existing [Virtual Network](../articles/virtual-network/quick-create-cli.md). deployed in one of the subscriptions. For this example, the virtual network is in **Azure Subscription A**.
33+
34+
[!INCLUDE [azure-cli-prepare-your-environment.md](~/reusable-content/azure-cli/azure-cli-prepare-your-environment-no-header.md)]
3535

3636
If you choose to install and use the CLI locally, this quickstart requires Azure CLI version 2.60 or later. To find the version, run az --version. If you need to install or upgrade, see Install the Azure CLI.
3737

0 commit comments

Comments
 (0)