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

lb_backendpool.tf#L1
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
}

load_balancer.tf#L15
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" {
loadbalancers.tf#L15
resource "azurerm_lb_backend_address_pool" "bpepool" {
  resource_group_name = azurerm_resource_group.rg.name
  loadbalancer_id     = azurerm_lb.externallb.id
  name                = "BackEndAddressPool"
}

main.tf#L30
resource "azurerm_lb_backend_address_pool" "web" {
  name            = "web"
  loadbalancer_id = azurerm_lb.gateway.id
}

resource "azurerm_network_interface_backend_address_pool_association" "web1" {
lbdbprd.tf#L27
resource "azurerm_lb_backend_address_pool" "backendpooldbprd" {
  resource_group_name = azurerm_resource_group.lab.name
  loadbalancer_id     = azurerm_lb.lbprd.id
  name                = "BackEndAddressPoolPRD"
}

lbdbhml.tf#L27
resource "azurerm_lb_backend_address_pool" "backendpooldb1" {
  resource_group_name = azurerm_resource_group.lab.name
  loadbalancer_id     = azurerm_lb.lab1.id
  name                = "BackEndAddressPool1"
}

lb_backendpool.tf#L1
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
}
7.lb_backendpool.tf#L1
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"
}
loadbalancers.tf#L15
resource "azurerm_lb_backend_address_pool" "bpepool" {
  resource_group_name = azurerm_resource_group.rg.name
  loadbalancer_id     = azurerm_lb.externallb.id
  name                = "BackEndAddressPool"
}

7.lb_backendpool.tf#L1
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"
}

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

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 - string
  • type required - string
  • apiVersion required - string
  • properties required
      • location optional - string

        The location of the backend address pool.

      • loadBalancerBackendAddresses optional array
          • properties optional
              • virtualNetwork optional
                  • id required - string

                    Resource ID.

              • subnet optional
                  • id required - string

                    Resource ID.

              • ipAddress optional - string

                IP Address belonging to the referenced virtual network.

              • loadBalancerFrontendIPConfiguration optional
                  • id required - string

                    Resource ID.

          • name optional - string

            Name 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.