BackendAddressPoolAddressArgs

data class BackendAddressPoolAddressArgs(val backendAddressIpConfigurationId: Output<String>? = null, val backendAddressPoolId: Output<String>? = null, val ipAddress: Output<String>? = null, val name: Output<String>? = null, val virtualNetworkId: Output<String>? = null) : ConvertibleToJava<BackendAddressPoolAddressArgs>

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

Constructors

Link copied to clipboard
fun BackendAddressPoolAddressArgs(backendAddressIpConfigurationId: Output<String>? = null, backendAddressPoolId: Output<String>? = null, ipAddress: Output<String>? = null, name: Output<String>? = null, virtualNetworkId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): BackendAddressPoolAddressArgs

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
val backendAddressPoolId: Output<String>? = null

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

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

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

Link copied to clipboard
val name: Output<String>? = null

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 virtualNetworkId: Output<String>? = null

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