Skip to content

Commit 139e03f

Browse files
author
Jill Grant
authored
Merge pull request #263972 from mbender-ms/lb-ado198517
load balancer - freshness - articles/load-balancer/tutorial-add-lb-existing-scale-set-portal.md
2 parents 3d1398f + 8818c18 commit 139e03f

File tree

2 files changed

+99
-198
lines changed

2 files changed

+99
-198
lines changed

articles/load-balancer/tutorial-add-lb-existing-scale-set-portal.md

Lines changed: 35 additions & 198 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@ author: mbender-ms
55
ms.author: mbender
66
ms.service: load-balancer
77
ms.topic: tutorial
8-
ms.date: 12/29/2022
8+
ms.date: 01/23/2024
99
ms.custom: template-tutorial, engagement-fy23
1010
---
1111

1212
# Tutorial: Add Azure Load Balancer to an existing Virtual Machine Scale Set using the Azure portal
1313

14-
The need may arise when an Azure Load Balancer isn't associated with a Virtual Machine Scale Set.
15-
16-
You may have an existing Virtual Machine Scale Set deployed with an Azure Load Balancer that requires updating.
17-
18-
The Azure portal can be used to add or update an Azure Load Balancer associated with a Virtual Machine Scale Set.
14+
In many organizations, the need can arise where an Azure Load Balancer isn't associated with a Virtual Machine Scale Set, but needs to be added. Or an existing Virtual Machine Scale Set is deployed with an Azure Load Balancer that requires updating. The Azure portal can be used to add or update an Azure Load Balancer associated with a Virtual Machine Scale Set.
1915

2016
In this tutorial, you learn how to:
2117

@@ -30,59 +26,13 @@ In this tutorial, you learn how to:
3026

3127
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F)
3228

33-
## Create a virtual network
34-
35-
In this section, you'll create a virtual network for the scale set and the other resources used in the tutorial.
36-
37-
1. Sign in to the [Azure portal](https://portal.azure.com).
38-
39-
1. In the search box at the top of the portal, enter **Virtual network** and select **Virtual networks** from the search results.
40-
41-
1. Select **Create**.
42-
43-
1. In the **Basics** tab of the **Create virtual network**, enter or select the following information:
44-
45-
| Setting | Value |
46-
| ------- | ------|
47-
| **Project details** | |
48-
| Subscription | Select your subscription. |
49-
| Resource group | Select **Create new**. </br> Enter **myResourceGroup** in **Name**. </br> Select **OK**. |
50-
| **Instance details** | |
51-
| Name | Enter **myVNet**. |
52-
| Region | Select **(US) West US 2**. |
53-
54-
1. Select the **IP addresses** tab, or the **Next: IP Addresses** button at the bottom of the page.
55-
56-
1. In the **IP addresses** tab, select **default** under **Subnet name**.
57-
58-
1. In the **Edit subnet** pane, enter **myBackendSubnet** under **Subnet name**.
59-
60-
1. Select **Save**.
61-
62-
1. Select the **Security** tab, or the **Next: Security** button at the bottom of the page.
63-
64-
1. In the **Security** tab, in **BastionHost** select **Enable**.
65-
66-
1. Enter or select the following information:
67-
68-
| Setting | Value |
69-
| ------- | ----- |
70-
| Bastion name | Enter **myBastionHost**. |
71-
| AzureBastionSubnet address space | Enter **10.1.1.0/26**. |
72-
| Public IP address | Select **Create new**. </br> Enter **myBastionIP** in **Name**. |
73-
74-
1. Select the **Review + create** tab, or the blue **Review + create** button at the bottom of the page.
75-
76-
1. Select **Create**.
7729

78-
> [!IMPORTANT]
30+
[!INCLUDE [load-balancer-create-bastion](../../includes/load-balancer-create-bastion.md)]
7931

80-
> [!INCLUDE [Pricing](../../includes/bastion-pricing.md)]
8132

82-
>
8333
## Create Virtual Machine Scale Set
8434

85-
In this section, you'll create a Virtual Machine Scale Set that will be attached to a load balancer created later.
35+
In this section, you create a Virtual Machine Scale Set that is attached to a load balancer created later.
8636

8737
1. In the search box at the top of the portal, enter **Virtual machine scale**, and select **Virtual machine scale sets** from the search results.
8838
1. Select **Create**.
@@ -93,10 +43,10 @@ In this section, you'll create a Virtual Machine Scale Set that will be attached
9343
| ------- | ----- |
9444
| **Project details** | |
9545
| Subscription | Select your subscription. |
96-
| Resource group | Select **myResourceGroup**. |
46+
| Resource group | Select **load-balancer-rg**. |
9747
| **Scale set details** | |
98-
| Virtual machine scale set name | Enter **myVMScaleSet**. |
99-
| Region | Select **(US) West US 2**. |
48+
| Virtual machine scale set name | Enter **lb-vmss**. |
49+
| Region | Select **(US) East US**. |
10050
| Availability zone | Leave the default of **None**. |
10151
| **Orchestration** | |
10252
| Orchestration mode | Leave the default of **Uniform: optimized for large-scale stateless workloads with identical instances**. |
@@ -117,145 +67,36 @@ In this section, you'll create a Virtual Machine Scale Set that will be attached
11767
| Setting | Value |
11868
| ------- | ----- |
11969
| **Virtual network configuration** | |
120-
| Virtual network | Select **myVNet**. |
70+
| Virtual network | Select **lb-vnet**. |
12171

12272
1. Select the **Review + create** tab, or select the blue **Review + create** button at the bottom of the page.
12373

12474
1. Select **Create**.
12575

126-
## Create NAT gateway
127-
128-
In this section, you'll create a NAT gateway for outbound connectivity of the virtual machines.
129-
130-
1. In the search box at the top of the portal, enter **NAT gateway**, and select **NAT gateways** in the search results.
131-
132-
1. Select **+ Create**.
133-
134-
1. In the **Basics** tab of **Create network address translation (NAT) gateway** page, enter or select the following information:
135-
136-
| Setting | Value |
137-
| ------- | ----- |
138-
| **Project details** | |
139-
| Subscription | Select your subscription. |
140-
| Resource group | Select **myResourceGroup**. |
141-
| **Instance details** | |
142-
| NAT gateway name | Enter **myNATgateway**. |
143-
| Region | Select **(US) West US 2**. |
144-
| Availability zone | Select **None**. |
145-
| Idle timeout (minutes) | Enter **15**. |
146-
147-
1. Select the **Outbound IP** tab, or select the **Next: Outbound IP** button at the bottom of the page.
148-
149-
1. Select **Create a new public IP address** next to **Public IP addresses** in the **Outbound IP** tab.
150-
151-
1. Enter **myPublicIP-nat** in **Name**.
152-
153-
1. Select **OK**.
154-
155-
1. Select the **Subnet** tab, or select the **Next: Subnet** button at the bottom of the page.
156-
157-
1. Select **myVNet** in the pull-down menu under **Virtual network**.
158-
159-
1. Select the check box next to **myBackendSubnet**.
160-
161-
1. Select the **Review + create** tab, or select the blue **Review + create** button at the bottom of the page.
162-
163-
1. Select **Create**.
76+
[!INCLUDE [load-balancer-nat-gateway](../../includes/load-balancer-nat-gateway.md)]
16477

165-
## Create load balancer
166-
167-
You'll create a load balancer in this section. The frontend IP, backend pool, load-balancing, and inbound NAT rules are configured as part of the creation.
168-
169-
1. In the search box at the top of the portal, enter **Load balancer**.
170-
171-
1. Select **Load balancers** in the search results.
172-
173-
1. Select **+ Create**.
174-
175-
1. In the **Basics** tab of **Create load balancer**, enter, or select the following information:
176-
177-
| Setting | Value |
178-
| ------- | ----- |
179-
| **Project details** | |
180-
| Subscription | Select your subscription. |
181-
| Resource group | Select **myResourceGroup**. |
182-
| **Instance details** | |
183-
| Name | Enter **myLoadBalancer**. |
184-
| Region | Select **(US) West US 2**. |
185-
| SKU | Leave the default of **Standard**. |
186-
| Type | Select **Public**. |
187-
| Tier | Leave the default of **Regional**. |
188-
189-
1. Select **Next: Frontend IP configuration** at the bottom of the page.
190-
191-
1. In **Frontend IP configuration**, select **+ Add a frontend IP**.
192-
193-
1. Enter **myFrontend** in **Name**.
194-
195-
1. Select **IPv4** or **IPv6** for the **IP version**.
196-
197-
> [!NOTE]
198-
> IPv6 isn't currently supported with Routing Preference or Cross-region load-balancing (Global Tier).
199-
200-
1. Select **IP address** for the **IP type**.
201-
202-
> [!NOTE]
203-
> For more information on IP prefixes, see [Azure Public IP address prefix](../virtual-network/ip-services/public-ip-address-prefix.md).
204-
205-
1. Select **Create new** in **Public IP address**.
206-
207-
1. In **Add a public IP address**, enter **myPublicIP** for **Name**.
208-
209-
1. Select **Zone-redundant** in **Availability zone**.
210-
211-
> [!NOTE]
212-
> In regions with [Availability Zones](../availability-zones/az-overview.md?toc=%2fazure%2fvirtual-network%2ftoc.json#availability-zones), you have the option to select no-zone (default option), a specific zone, or zone-redundant. The choice will depend on your specific domain failure requirements. In regions without Availability Zones, this field won't appear. </br> For more information on availability zones, see [Availability zones overview](../availability-zones/az-overview.md).
213-
214-
1. Select **Add**.
215-
216-
1. Select **Next: Backend pools** at the bottom of the page.
217-
218-
1. In the **Backend pools** tab, select **+ Add a backend pool**.
219-
220-
1. Enter or select the following information in **Add backend pool**.
221-
222-
| Setting | Value |
223-
| ------- | ----- |
224-
| Name | Enter **myBackendPool**. |
225-
| Virtual network | Select **myVNet (myResourceGroup)**. |
226-
| Backend Pool Configuration | Select **NIC**. |
227-
| IP version | Select **IPv4**.
228-
229-
1. Select **Save**.
230-
231-
1. Select the **Review + create** tab, or select the blue **Review + create** button at the bottom of the page.
232-
233-
1. Select **Create**.
78+
[!INCLUDE [load-balancer-create-public-no-rule](../../includes/load-balancer-create-public-no-rule.md)]
23479

23580
### Configure load balancer settings
23681

237-
In this section, you'll create a backend pool for **myLoadBalancer**.
238-
239-
You'll create a health probe to monitor **HTTP** and **Port 80**. The health probe will monitor the health of the virtual machines in the backend pool.
240-
241-
You'll create a load-balancing rule for **Port 80** with outbound SNAT disabled. The NAT gateway you created earlier will handle the outbound connectivity of the virtual machines.
82+
In this section, you create a backend pool for load-balancer. You create a health probe to monitor HTTP and Port 80 to ensure the health of the virtual machines in the backend pool. Additionally, you create a load-balancing rule for Port 80 with outbound SNAT disabled. The outbound connectivity of the virtual machines is handled by the NAT gateway created earlier.
24283

24384
1. In the search box at the top of the portal, enter **Load balancer**.
24485

24586
1. Select **Load balancers** in the search results.
24687

247-
1. Select **myLoadBalancer**.
88+
1. Select **load-balancer**.
24889

249-
1. In **myLoadBalancer**, select **Backend pools** in **Settings**.
90+
1. In **load-balancer**, select **Backend pools** in **Settings**.
25091

25192
1. Select **+ Add** in **Backend pools**.
25293

25394
1. In **Add backend pool**, enter or select the following information:
25495

25596
| Setting | Value |
25697
| ------- | ----- |
257-
| Name | Enter **myBackendPool**. |
258-
| Virtual network | Select **myVNet**. |
98+
| Name | Enter **lb-backend-pool**. |
99+
| Virtual network | Select **lb-vnet**. |
259100
| Backend Pool Configuration | Leave the default of **NIC**. |
260101

261102
1. Select **Save**.
@@ -268,14 +109,14 @@ You'll create a load-balancing rule for **Port 80** with outbound SNAT disabled.
268109

269110
| Setting | Value |
270111
| ------- | ----- |
271-
| Name | Enter **myHTTPRule**. |
112+
| Name | Enter **lb-HTTP-rule**. |
272113
| IP Version | Leave the default of **IPv4**. |
273-
| Frontend IP address | Select **myFrontEnd**. |
274-
| Backend pool | Select **myBackendPool**. |
114+
| Frontend IP address | Select **lb-Frontend-IP**. |
115+
| Backend pool | Select **lb-backend-pool**. |
275116
| Protocol | Select the default of **TCP**. |
276117
| Port | Enter **80**. |
277118
| Backend port | Enter **80**. |
278-
| Health probe | Select **Create new**.<br/> Enter **myHTTPProbe** for **Name**.</br><br/>Select **HTTP** for **Protocol**.</br><br/> Select **Ok**.</br>|
119+
| Health probe | Select **Create new**.<br/> Enter **lb-HTTP-probe** for **Name**.</br><br/>Select **HTTP** for **Protocol**.</br><br/> Select **Ok**.</br>|
279120
| Session persistence | Leave the default of **None**. |
280121
| Idle timeout (minutes) | Change the slider to **15**. |
281122
| TCP reset | Select **Enabled**. |
@@ -284,51 +125,47 @@ You'll create a load-balancing rule for **Port 80** with outbound SNAT disabled.
284125

285126
1. Select **Add**.
286127
1. Select **Review + Create** and **Create**.
128+
287129
## Add load balancer to scale set
288130

289-
In this section, you'll go to the scale set in the Azure portal and add a load balancer to the scale set.
131+
In this section, you add a load balancer to the scale set in the Azure portal.
290132

291133
1. In the search box at the top of the portal, enter **Virtual machine scale**.
292134

293-
2. In the search results, select **Virtual machine scale sets**.
135+
1. In the search results, select **Virtual machine scale sets**.
294136

295-
3. Select **myVMScaleSet**.
137+
1. Select **lb-vmss**.
296138

297-
4. In the **Settings** section of **myVMScaleSet**, select **Networking**.
139+
1. In the **Settings** section of **lb-vmss**, select **Networking**.
298140

299-
5. Select the **Load balancing** tab in the **Overview** page of the **Networking** settings of **myVMScaleSet**.
141+
1. Select the **Load balancing** tab in the **Overview** page of the **Networking** settings of **lb-vmss**.
300142

301143
:::image type="content" source="./media/tutorial-add-lb-existing-scale-set-portal/load-balancing-tab.png" alt-text="Select the load balancing tab in networking." border="true":::
302144

303-
6. Select the blue **Add load balancing** button.
145+
1. Select the blue **Add load balancing** button.
304146

305-
7. In **Add load balancing**, enter or select the following information:
147+
1. In **Add load balancing**, enter or select the following information:
306148

307149
| Setting | Value |
308150
| ------- | ----- |
309151
| Load balancing options | Select **Azure load balancer**. |
310-
| Select a load balancer | Select **myLoadBalancer**. |
152+
| Select a load balancer | Select **load-balancer**. |
311153
| Backend pool | Select **Use existing**. |
312-
| Select a backend pool | Select **myBackendPool**. |
154+
| Select a backend pool | Select **lb-backend-pool**. |
313155

314-
8. Select **Save**.
156+
1. Select **Save**.
315157

316158
## Clean up resources
317159

318160
If you're not going to continue to use this application, delete
319161
the load balancer and the supporting resources with the following steps:
320162

321163
1. In the search box at the top of the portal, enter **Resource group**.
322-
323-
2. Select **Resource groups** in the search results.
324-
325-
3. Select **myResourceGroup**.
326-
327-
4. In the overview page of **myResourceGroup**, select **Delete resource group**.
328-
329-
5. Enter **myResourceGroup** in **TYPE THE RESOURCE GROUP NAME**.
330-
331-
6. Select **Delete**.
164+
1. Select **Resource groups** in the search results.
165+
1. Select **load-balancer-rg**.
166+
1. In the overview page of **load-balancer-rg**, select **Delete resource group**.
167+
1. Enter **load-balancer-rg** in **TYPE THE RESOURCE GROUP NAME**.
168+
1. Select **Delete**.
332169

333170
## Next steps
334171

0 commit comments

Comments
 (0)