You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Tutorial: Add Azure Load Balancer to an existing Virtual Machine Scale Set using the Azure portal
13
13
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.
19
15
20
16
In this tutorial, you learn how to:
21
17
@@ -30,59 +26,13 @@ In this tutorial, you learn how to:
30
26
31
27
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F)
32
28
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.
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**.
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.
242
83
243
84
1. In the search box at the top of the portal, enter **Load balancer**.
244
85
245
86
1. Select **Load balancers** in the search results.
246
87
247
-
1. Select **myLoadBalancer**.
88
+
1. Select **load-balancer**.
248
89
249
-
1. In **myLoadBalancer**, select **Backend pools** in **Settings**.
90
+
1. In **load-balancer**, select **Backend pools** in **Settings**.
250
91
251
92
1. Select **+ Add** in **Backend pools**.
252
93
253
94
1. In **Add backend pool**, enter or select the following information:
254
95
255
96
| Setting | Value |
256
97
| ------- | ----- |
257
-
| Name | Enter **myBackendPool**. |
258
-
| Virtual network | Select **myVNet**. |
98
+
| Name | Enter **lb-backend-pool**. |
99
+
| Virtual network | Select **lb-vnet**. |
259
100
| Backend Pool Configuration | Leave the default of **NIC**. |
260
101
261
102
1. Select **Save**.
@@ -268,14 +109,14 @@ You'll create a load-balancing rule for **Port 80** with outbound SNAT disabled.
268
109
269
110
| Setting | Value |
270
111
| ------- | ----- |
271
-
| Name | Enter **myHTTPRule**. |
112
+
| Name | Enter **lb-HTTP-rule**. |
272
113
| 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**. |
275
116
| Protocol | Select the default of **TCP**. |
276
117
| Port | Enter **80**. |
277
118
| 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>|
279
120
| Session persistence | Leave the default of **None**. |
280
121
| Idle timeout (minutes) | Change the slider to **15**. |
281
122
| TCP reset | Select **Enabled**. |
@@ -284,51 +125,47 @@ You'll create a load-balancing rule for **Port 80** with outbound SNAT disabled.
284
125
285
126
1. Select **Add**.
286
127
1. Select **Review + Create** and **Create**.
128
+
287
129
## Add load balancer to scale set
288
130
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.
290
132
291
133
1. In the search box at the top of the portal, enter **Virtual machine scale**.
292
134
293
-
2. In the search results, select **Virtual machine scale sets**.
135
+
1. In the search results, select **Virtual machine scale sets**.
294
136
295
-
3. Select **myVMScaleSet**.
137
+
1. Select **lb-vmss**.
296
138
297
-
4. In the **Settings** section of **myVMScaleSet**, select **Networking**.
139
+
1. In the **Settings** section of **lb-vmss**, select **Networking**.
298
140
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**.
300
142
301
143
:::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":::
302
144
303
-
6. Select the blue **Add load balancing** button.
145
+
1. Select the blue **Add load balancing** button.
304
146
305
-
7. In **Add load balancing**, enter or select the following information:
147
+
1. In **Add load balancing**, enter or select the following information:
0 commit comments