Azure Load Balancer Backend Address Pool
This page shows how to write Terraform and Azure Resource Manager for Load Balancer Backend Address Pool and write them securely.
azurerm_lb_backend_address_pool (Terraform)
The Backend Address Pool in Load Balancer can be configured in Terraform with the resource name azurerm_lb_backend_address_pool
. The following sections describe 10 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_lb_backend_address_pool" "user16-bpepool1" {
name = "user16-BackEndAddressPool1"
resource_group_name = azurerm_resource_group.user16-rg.name
loadbalancer_id = azurerm_lb.user16-lb1.id
}
resource "azurerm_lb_backend_address_pool" "checkpoint_lb_external_backend_pool" {
resource_group_name = azurerm_resource_group.Checkpoint_ResourceGroup.name
loadbalancer_id = azurerm_lb.checkpoint_lb_external.id
name = local.elbBEAddressPool
}
resource "azurerm_lb_probe" "checkpoint_lb_external_backend_probe" {
resource "azurerm_lb_backend_address_pool" "bpepool" {
resource_group_name = azurerm_resource_group.rg.name
loadbalancer_id = azurerm_lb.externallb.id
name = "BackEndAddressPool"
}
resource "azurerm_lb_backend_address_pool" "web" {
name = "web"
loadbalancer_id = azurerm_lb.gateway.id
}
resource "azurerm_network_interface_backend_address_pool_association" "web1" {
resource "azurerm_lb_backend_address_pool" "backendpooldbprd" {
resource_group_name = azurerm_resource_group.lab.name
loadbalancer_id = azurerm_lb.lbprd.id
name = "BackEndAddressPoolPRD"
}
resource "azurerm_lb_backend_address_pool" "backendpooldb1" {
resource_group_name = azurerm_resource_group.lab.name
loadbalancer_id = azurerm_lb.lab1.id
name = "BackEndAddressPool1"
}
resource "azurerm_lb_backend_address_pool" "user28-bpepool" {
name = "user28-BackEndAddressPool"
resource_group_name = azurerm_resource_group.user28-rg.name
loadbalancer_id = azurerm_lb.user28-lb.id
}
resource "azurerm_lb_backend_address_pool" "user12-bpepool" {
resource_group_name = azurerm_resource_group.user12rg.name
loadbalancer_id = azurerm_lb.user12-lb.id
name = "user12-BackEndAddressPool"
}
resource "azurerm_lb_backend_address_pool" "bpepool" {
resource_group_name = azurerm_resource_group.rg.name
loadbalancer_id = azurerm_lb.externallb.id
name = "BackEndAddressPool"
}
resource "azurerm_lb_backend_address_pool" "user14-bpepool" {
resource_group_name = azurerm_resource_group.user14-rg.name
loadbalancer_id = azurerm_lb.user14-lb.id
name = "user14-BackEndAddressPool"
}
Parameters
-
backend_ip_configurations
optional computed - list of string -
id
optional computed - string -
load_balancing_rules
optional computed - list of string -
loadbalancer_id
required - string -
name
required - string -
outbound_rules
optional computed - list of string -
resource_group_name
optional computed - string -
backend_address
set block-
ip_address
required - string -
name
required - string -
virtual_network_id
required - string
-
-
timeouts
single block
Explanation in Terraform Registry
Manages a Load Balancer Backend Address Pool.
NOTE: When using this resource, the Load Balancer needs to have a FrontEnd IP Configuration Attached
Microsoft.Network/loadBalancers/backendAddressPools (Azure Resource Manager)
The loadBalancers/backendAddressPools in Microsoft.Network can be configured in Azure Resource Manager with the resource name Microsoft.Network/loadBalancers/backendAddressPools
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
name
required - stringtype
required - stringapiVersion
required - stringproperties
requiredlocation
optional - stringThe location of the backend address pool.
loadBalancerBackendAddresses
optional arrayproperties
optionalvirtualNetwork
optionalid
required - stringResource ID.
subnet
optionalid
required - stringResource ID.
ipAddress
optional - stringIP Address belonging to the referenced virtual network.
loadBalancerFrontendIPConfiguration
optionalid
required - stringResource ID.
name
optional - stringName of the backend address.
Frequently asked questions
What is Azure Load Balancer Backend Address Pool?
Azure Load Balancer Backend Address Pool is a resource for Load Balancer of Microsoft Azure. Settings can be wrote in Terraform.
Where can I find the example code for the Azure Load Balancer Backend Address Pool?
For Terraform, the fantasthan/user16, milescattini/Terraform and philipatkinson86/azure-checkpoint-automation source code examples are useful. See the Terraform Example section for further details.