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
Copy file name to clipboardExpand all lines: articles/load-balancer/egress-only.md
+36-33Lines changed: 36 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: This article provides a step-by-step guide on how to configure an "
5
5
author: mbender-ms
6
6
ms.service: azure-load-balancer
7
7
ms.topic: how-to
8
-
ms.date: 09/06/2024
8
+
ms.date: 02/26/2026
9
9
ms.author: mbender
10
10
ms.custom: template-how-to
11
11
# Customer intent: As an IT administrator, I want to configure an outbound-only load balancer using internal and public load balancers, so that I can enable secure outbound connectivity for virtual machines without allowing inbound public access.
@@ -18,16 +18,19 @@ Use a combination of internal and external standard load balancers to create out
18
18
This configuration provides outbound NAT for an internal load balancer scenario, producing an "egress only" setup for your backend pool.
19
19
20
20
> [!NOTE]
21
-
> **Azure NAT Gateway** is the recommended configuration for outbound connectivity in production deployments. For more information about **NAT Gateway**, see **[What is Azure NAT Gateway?](../virtual-network/nat-gateway/nat-overview.md)**.
21
+
> **Azure NAT Gateway** is the recommended configuration for outbound connectivity in production deployments. NAT Gateway is available in two SKUs: **Standard** (zonal) and **StandardV2** (zone-redundant, with IPv6 support, 100 Gbps throughput, and flow logs). For more information about **NAT Gateway**, see **[What is Azure NAT Gateway?](../nat-gateway/nat-overview.md)**
22
22
>
23
-
> To deploy an outbound only load balancer configuration with Azure NAT Gateway, see [Tutorial: Integrate NAT gateway with an internal load balancer - Azure portal](../virtual-network/nat-gateway/tutorial-nat-gateway-load-balancer-internal-portal.md).
23
+
> To deploy an outbound only load balancer configuration with Azure NAT Gateway, see [Tutorial: Integrate NAT gateway with an internal load balancer - Azure portal](../nat-gateway/tutorial-nat-gateway-load-balancer-internal-portal.md).
24
24
>
25
25
> For more information about outbound connections in Azure and default outbound access, see [Source Network Address Translation (SNAT) for outbound connections](load-balancer-outbound-connections.md) and [Default outbound access](../virtual-network/ip-services/default-outbound-access.md).
26
26
27
-
:::image type="content" source="./media/egress-only/load-balancer-egress-only.png" alt-text="Figure depicts a egress only load balancer configuration" border="true":::
27
+
:::image type="content" source="./media/egress-only/load-balancer-egress-only.png" alt-text="Screenshot of an egress only load balancer configuration." border="true":::
28
28
29
29
*Figure: Egress only load balancer configuration*
30
30
31
+
> [!IMPORTANT]
32
+
> On March 31, 2026, new virtual networks default to using private subnets, and [default outbound access](../virtual-network/ip-services/default-outbound-access.md) is no longer provided. Use an explicit form of outbound connectivity, such as NAT Gateway. For more information, see the [official announcement](https://azure.microsoft.com/updates?id=default-outbound-access-for-vms-in-azure-will-be-retired-transition-to-a-new-method-of-internet-access).
33
+
31
34
## Prerequisites
32
35
33
36
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/pricing/purchase-options/azure-account?cid=msft_learn).
@@ -38,7 +41,7 @@ This configuration provides outbound NAT for an internal load balancer scenario,
38
41
39
42
## Create internal load balancer
40
43
41
-
In this section, you'll create the internal load balancer.
44
+
In this section, you create the internal load balancer.
42
45
43
46
1. In the search box at the top of the portal, enter **Load balancer**. Select **Load balancers** in the search results.
44
47
@@ -50,7 +53,7 @@ In this section, you'll create the internal load balancer.
50
53
| --- | --- |
51
54
|**Project details**||
52
55
| Subscription | Select your subscription. |
53
-
| Resource group | Select **lb-resource-group**. |
56
+
| Resource group | Select **load-balancer-rg**. |
54
57
|**Instance details**||
55
58
| Name | Enter **lb-internal**|
56
59
| Region | Select **(US) East US**. |
@@ -73,7 +76,7 @@ In this section, you'll create the internal load balancer.
73
76
1. Select **Zone-redundant** in **Availability zone**.
74
77
75
78
> [!NOTE]
76
-
> In regions with [Availability Zones](/azure/reliability/availability-zones-overview?toc=%2fazure%2fvirtual-network%2ftoc.json), 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](/azure/reliability/availability-zones-overview).
79
+
> In regions with [Availability Zones](/azure/reliability/availability-zones-overview?toc=%2fazure%2fvirtual-network%2ftoc.json), you can select no-zone (default option), a specific zone, or zone-redundant. The choice depends on your specific domain failure requirements. In regions without Availability Zones, this field doesn't appear. For more information on availability zones, see [Availability zones overview](/azure/reliability/availability-zones-overview).
77
80
78
81
1. Select **Add**.
79
82
@@ -93,7 +96,7 @@ In this section, you'll create the internal load balancer.
93
96
94
97
## Create public load balancer
95
98
96
-
In this section, you'll create the public load balancer.
99
+
In this section, you create the public load balancer.
97
100
98
101
1. In the search box at the top of the portal, enter **Load balancer**. Select **Load balancers** in the search results.
99
102
@@ -105,7 +108,7 @@ In this section, you'll create the public load balancer.
105
108
| --- | --- |
106
109
|**Project details**||
107
110
| Subscription | Select your subscription. |
108
-
| Resource group | Select **lb-resource-group**. |
111
+
| Resource group | Select **load-balancer-rg**. |
109
112
|**Instance details**||
110
113
| Name | Enter **lb-public**|
111
114
| Region | Select **(US) East US**. |
@@ -136,7 +139,7 @@ In this section, you'll create the public load balancer.
136
139
1. Select **Zone-redundant** in **Availability zone**.
137
140
138
141
> [!NOTE]
139
-
> In regions with [Availability Zones](/azure/reliability/availability-zones-overview?toc=%2fazure%2fvirtual-network%2ftoc.json), 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](/azure/reliability/availability-zones-overview).
142
+
> In regions with [Availability Zones](/azure/reliability/availability-zones-overview?toc=%2fazure%2fvirtual-network%2ftoc.json), you can select no-zone (default option), a specific zone, or zone-redundant. The choice depends on your specific domain failure requirements. In regions without Availability Zones, this field doesn't appear. For more information on availability zones, see [Availability zones overview](/azure/reliability/availability-zones-overview).
140
143
141
144
1. Leave the default of **Microsoft Network** for **Routing preference**.
142
145
@@ -150,7 +153,7 @@ In this section, you'll create the public load balancer.
150
153
151
154
1. Enter **lb-pub-backend-pool** for **Name** in **Add backend pool**.
152
155
153
-
1. Select **lb-VNet** in **Virtual network**.
156
+
1. Select **lb-vnet** in **Virtual network**.
154
157
155
158
1. Select **NIC** or **IP Address** for **Backend Pool Configuration**.
156
159
@@ -162,7 +165,7 @@ In this section, you'll create the public load balancer.
162
165
163
166
## Create virtual machine
164
167
165
-
You'll create a virtual machine in this section. During creation, you'll add it to the backend pool of the internal load balancer. After the virtual machine is created, you'll add the virtual machine to the backend pool of the public load balancer.
168
+
Create a virtual machine in this section. During creation, add it to the backend pool of the internal load balancer. After the virtual machine is created, add the virtual machine to the backend pool of the public load balancer.
166
169
167
170
1. In the search box at the top of the portal, enter **Virtual machine**. Select **Virtual machines** in the search results.
168
171
@@ -174,7 +177,7 @@ You'll create a virtual machine in this section. During creation, you'll add it
@@ -190,20 +193,20 @@ You'll create a virtual machine in this section. During creation, you'll add it
190
193
|**Inbound port rules**||
191
194
| Public inbound ports | Select **None**|
192
195
193
-
1. Select the **Networking** tab, or select **Next: Disks**, then **Next: Networking**.
196
+
1. Select the **Networking** tab, or select **Next: Disks**, and then **Next: Networking**.
194
197
195
198
1. In the Networking tab, select or enter:
196
199
197
200
| Setting | Value |
198
201
|-|-|
199
202
|**Network interface**||
200
-
| Virtual network |**lb-VNet**|
203
+
| Virtual network |**lb-vnet**|
201
204
| Subnet |**backend-subnet**|
202
205
| Public IP | Select **None**. |
203
206
| NIC network security group | Select **Advanced**|
204
-
| Configure network security group | Leave the default of **vm-NSG**. This might be different if you choose a different name for your VM. |
207
+
| Configure network security group | Leave the default of **vm-NSG**. This value might be different if you choose a different name for your VM. |
205
208
206
-
1. Under **Load balancing**, select the following:
209
+
1. Under **Load balancing**, select the following values:
207
210
208
211
| Setting | Value |
209
212
|-|-|
@@ -217,7 +220,7 @@ You'll create a virtual machine in this section. During creation, you'll add it
217
220
218
221
## Add VM to backend pool of public load balancer
219
222
220
-
In this section, you'll add the virtual machine you created previously to the backend pool of the public load balancer.
223
+
In this section, you add the virtual machine you created previously to the backend pool of the public load balancer.
221
224
222
225
1. In the search box at the top of the portal, enter **Load balancer**. Select **Load balancers** in the search results.
223
226
@@ -227,7 +230,7 @@ In this section, you'll add the virtual machine you created previously to the ba
227
230
228
231
1. Select **lb-pub-backend-pool** under **Backend pool** in the **Backend pools** page.
229
232
230
-
1. In **lb-pub-backend-pool**, select **lb-VNet** in **Virtual network**.
233
+
1. In **lb-pub-backend-pool**, select **lb-vnet** in **Virtual network**.
231
234
232
235
1. In **Virtual machines**, select the blue **+ Add** button.
233
236
@@ -243,17 +246,17 @@ In this section, you'll add the virtual machine you created previously to the ba
243
246
244
247
1. Select **lb-VM**.
245
248
246
-
1. In the **Overview** page, select **Connect**, then **Bastion**.
249
+
1. In the **Overview** page, select **Connect**, and then select**Bastion**.
247
250
248
-
1. Enter the username and password entered during VM creation.
251
+
1. Enter the username and password that you provided during VM creation.
249
252
250
253
1. Select **Connect**.
251
254
252
255
1. Open Microsoft Edge browser.
253
256
254
-
1. Enter **https://whatsmyip.org** in the address bar.
257
+
1. Enter **https://ifconfig.me** in the address bar.
255
258
256
-
1. The connection should fail. By default, standard public load balancer [doesn't allow outbound traffic without a defined outbound rule](load-balancer-overview.md#securebydefault).
259
+
1. The connection fails. By default, standard public load balancer [doesn't allow outbound traffic without a defined outbound rule](load-balancer-overview.md#securebydefault).
257
260
258
261
## Create a public load balancer outbound rule
259
262
@@ -279,7 +282,7 @@ In this section, you'll add the virtual machine you created previously to the ba
279
282
| Port allocation | Select **Manually choose number of outbound ports**. |
280
283
|**Outbound ports**||
281
284
| Choose by | Select **Ports per instance**. |
282
-
| Ports per instance | Enter **10000**
285
+
| Ports per instance | Enter **10000**.
283
286
284
287
1. Select **Add**.
285
288
@@ -289,30 +292,30 @@ In this section, you'll add the virtual machine you created previously to the ba
289
292
290
293
1. Select **lb-VM**.
291
294
292
-
1. On the **Overview** page, select **Connect**, then **Bastion**.
295
+
1. On the **Overview** page, select **Connect**, and then select**Bastion**.
293
296
294
-
1. Enter the username and password entered during VM creation.
297
+
1. Enter the username and password that you provided during VM creation.
295
298
296
299
1. Select **Connect**.
297
300
298
301
1. Open Microsoft Edge browser.
299
302
300
-
1. Enter **https://whatsmyip.org** in the address bar.
303
+
1. Enter **https://ifconfig.me** in the address bar.
301
304
302
-
1. The connection should succeed.
305
+
1. The connection succeeds.
303
306
304
-
1. The IP address displayed should be the frontend IP address of **lb-public**.
307
+
1. The IP address displayed is the frontend IP address of **lb-public**.
305
308
306
309
## Clean up resources
307
310
308
-
When no longer needed, delete the resource group, load balancers, VM, and all related resources.
311
+
When you no longer need the resources, delete the resource group, load balancers, VM, and all related resources.
309
312
310
-
To do so, select the resource group **lb-resource-group** and then select **Delete**.
313
+
Select the resource group **load-balancer-rg** and then select **Delete**.
311
314
312
315
## Next steps
313
316
314
-
In this article, you created an "egress only" configuration with a combination of public and internal load balancers.
317
+
In this article, you created an "egress only" configuration by using a combination of public and internal load balancers.
315
318
316
-
This configuration allows you to load balance incoming internal traffic to your backend pool while still preventing any public inbound connections.
319
+
This configuration balances incoming internal traffic to your backend pool while preventing any public inbound connections.
317
320
318
321
For more information about Azure Load Balancer and Azure Bastion, see [What is Azure Load Balancer?](load-balancer-overview.md) and [What is Azure Bastion?](../bastion/bastion-overview.md)
0 commit comments