The backend pool is a critical component of the load balancer. The backend pool defines the group of resources that serve traffic for a given load-balancing rule.
There are two ways of configuring a backend pool:
Network Interface Card (NIC)
IP address
To preallocate a backend pool with an IP address range that will contain virtual machines and Virtual Machine Scale Sets, configure the pool by IP address and virtual network ID.
This article focuses on configuration of backend pools by IP addresses.
Configure backend pool by IP address and virtual network
In scenarios with pre-populated backend pools, use IP and virtual network.
You configure backend pool management on the backend pool object as highlighted in the following examples.
Create a VM and attach the NIC with an IP address in the backend pool:
Azure CLI
az vm create \
--resource-group myResourceGroup \
--name myVM \
--nics myNic \
--image Ubuntu2204 \
--admin-username azureuser \
--generate-ssh-keys
Limitations
IP based backends can only be used for Standard Load Balancers
The backend resources must be in the same virtual network as the load balancer for IP based LBs
IP-based load balancers backend instances must still be virtual machines or virtual machine scale sets. Attaching other PaaS services to the backend pool of an IP based Load Balancer is not supported.
A load balancer with IP based Backend Pool can’t function as a Private Link service
IP-based load balancers doesn't support ACI containers
Load balancers or services such as Application Gateway can’t be placed in the backend pool of the load balancer
Inbound NAT Rules can’t be specified by IP address
You can configure IP based and NIC based backend pools for the same load balancer. You can’t create a single backend pool that mixes backed addresses targeted by NIC and IP addresses within the same pool.
A virtual machine in the same virtual network as an internal load balancer can't access the frontend of the ILB and its backend VMs simultaneously.
Internet routing preference IPs are currently not supported with IP based backend pools. Any Internet routing preference IPs in IP based backend pools will be billed and routed via the default Microsoft global network.
If backend pools are constantly changing (due to the constant addition or removal of backend resources). This may cause reset signals sent back to the source from the backend resource. As a workaround, you can use retries.
Важливо
When a backend pool is configured by IP address, it will behave as a Basic Load Balancer with default outbound enabled. For secure by default configuration and applications with demanding outbound needs, configure the backend pool by NIC.
Next steps
In this article, you learned about Azure Load Balancer backend pool management and how to configure a backend pool by IP address and virtual network.