Skip to content

Commit e34dbe0

Browse files
Clarify default port allocation instructions.
1 parent cb7ca67 commit e34dbe0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/load-balancer/load-balancer-outbound-connections.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ If using SNAT without outbound rules via a public load balancer, SNAT ports are
123123
When default port allocation is enabled, SNAT ports will be allocated by default based on the backend pool size. Backends receive the number of ports defined by the table, per frontend IP, up to a maximum of 1024 ports. Default port allocation is NOT recommended for production workloads, as doing so allocates a minimal number of ports to each backend instance and increases the risk of SNAT port exhaustion. Instead, consider leveraging NAT Gateway or manually allocating ports on your load balancer outbound rules.
124124

125125
There are multiple ways default port allocation can be enabled:
126-
- Configuring a load balancing rule with disableOutboundSnat set to false
127-
- Configuring an outbound rule but setting the allocatedOutboundPorts property to 0 directly, or indirectly by selecting "Enable default port allocation" in Azure portal
126+
- Configuring a load balancing rule with disableOutboundSnat set to false, or by selecting the default port allocation option on a load balancer rule in the Azure portal
127+
- Configuring an outbound rule but setting the allocatedOutboundPorts property to 0, or by selecting "Enable default port allocation" in the Azure portal
128128

129129
As an example, with 100 VMs in a backend pool and only one frontend IP, each VM receives 512 ports. If a second frontend IP is added, each VM receives an extra 512 ports. This means each VM is allocated a total of 1,024 ports. As a result, adding a third frontend IP will NOT increase the number of allocated SNAT ports beyond 1024 ports.
130130

0 commit comments

Comments
 (0)