BackendAddressPoolAddress

class BackendAddressPoolAddress : KotlinCustomResource

Manages a Backend Address within a Backend Address Pool.

Note: Backend Addresses can only be added to a Standard SKU Load Balancer.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.network.NetworkFunctions;
import com.pulumi.azure.network.inputs.GetVirtualNetworkArgs;
import com.pulumi.azure.lb.LbFunctions;
import com.pulumi.azure.lb.inputs.GetLBArgs;
import com.pulumi.azure.lb.inputs.GetBackendAddressPoolArgs;
import com.pulumi.azure.lb.BackendAddressPoolAddress;
import com.pulumi.azure.lb.BackendAddressPoolAddressArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var exampleVirtualNetwork = NetworkFunctions.getVirtualNetwork(GetVirtualNetworkArgs.builder()
.name("example-network")
.resourceGroupName("example-resources")
.build());
final var exampleLB = LbFunctions.getLB(GetLBArgs.builder()
.name("example-lb")
.resourceGroupName("example-resources")
.build());
final var exampleBackendAddressPool = LbFunctions.getBackendAddressPool(GetBackendAddressPoolArgs.builder()
.name("first")
.loadbalancerId(exampleLB.applyValue(getLBResult -> getLBResult.id()))
.build());
var exampleBackendAddressPoolAddress = new BackendAddressPoolAddress("exampleBackendAddressPoolAddress", BackendAddressPoolAddressArgs.builder()
.backendAddressPoolId(exampleBackendAddressPool.applyValue(getBackendAddressPoolResult -> getBackendAddressPoolResult.id()))
.virtualNetworkId(exampleVirtualNetwork.applyValue(getVirtualNetworkResult -> getVirtualNetworkResult.id()))
.ipAddress("10.0.0.1")
.build());
final var backend-pool-cr = LbFunctions.getBackendAddressPool(GetBackendAddressPoolArgs.builder()
.name("globalLBBackendPool")
.loadbalancerId(exampleLB.applyValue(getLBResult -> getLBResult.id()))
.build());
var example_1 = new BackendAddressPoolAddress("example-1", BackendAddressPoolAddressArgs.builder()
.backendAddressPoolId(backend_pool_cr.id())
.backendAddressIpConfigurationId(azurerm_lb.backend-lb-R1().frontend_ip_configuration()[0].id())
.build());
var example_2 = new BackendAddressPoolAddress("example-2", BackendAddressPoolAddressArgs.builder()
.backendAddressPoolId(backend_pool_cr.id())
.backendAddressIpConfigurationId(azurerm_lb.backend-lb-R2().frontend_ip_configuration()[0].id())
.build());
}
}

Import

Backend Address Pool Addresses can be imported using the resource id, e.g.

$ pulumi import azure:lb/backendAddressPoolAddress:BackendAddressPoolAddress example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/loadBalancers/loadBalancer1/backendAddressPools/backendAddressPool1/addresses/address1

Properties

Link copied to clipboard

The ip config ID of the regional load balancer that's added to the global load balancer's backend address pool.

Link copied to clipboard

The ID of the Backend Address Pool. Changing this forces a new Backend Address Pool Address to be created.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

A list of inbound_nat_rule_port_mapping block as defined below.

Link copied to clipboard
val ipAddress: Output<String>?

The Static IP Address which should be allocated to this Backend Address Pool.

Link copied to clipboard
val name: Output<String>

The name which should be used for this Backend Address Pool Address. Changing this forces a new Backend Address Pool Address to be created.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val virtualNetworkId: Output<String>?

The ID of the Virtual Network within which the Backend Address Pool should exist.