BackendAddressPool

class BackendAddressPool : KotlinCustomResource

Manages a Load Balancer Backend Address Pool.

NOTE: When using this resource, the Load Balancer needs to have a FrontEnd IP Configuration Attached

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.PublicIp;
import com.pulumi.azure.network.PublicIpArgs;
import com.pulumi.azure.lb.LoadBalancer;
import com.pulumi.azure.lb.LoadBalancerArgs;
import com.pulumi.azure.lb.inputs.LoadBalancerFrontendIpConfigurationArgs;
import com.pulumi.azure.lb.BackendAddressPool;
import com.pulumi.azure.lb.BackendAddressPoolArgs;
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) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var examplePublicIp = new PublicIp("examplePublicIp", PublicIpArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.allocationMethod("Static")
.build());
var exampleLoadBalancer = new LoadBalancer("exampleLoadBalancer", LoadBalancerArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.frontendIpConfigurations(LoadBalancerFrontendIpConfigurationArgs.builder()
.name("PublicIPAddress")
.publicIpAddressId(examplePublicIp.id())
.build())
.build());
var exampleBackendAddressPool = new BackendAddressPool("exampleBackendAddressPool", BackendAddressPoolArgs.builder()
.loadbalancerId(exampleLoadBalancer.id())
.build());
}
}

Import

Load Balancer Backend Address Pools can be imported using the resource id, e.g.

$ pulumi import azure:lb/backendAddressPool:BackendAddressPool example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/pool1

Properties

Link copied to clipboard

The Backend IP Configurations associated with this Backend Address Pool.

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

An array of the Load Balancing Inbound NAT Rules associated with this Backend Address Pool.

Link copied to clipboard
val loadbalancerId: Output<String>

The ID of the Load Balancer in which to create the Backend Address Pool. Changing this forces a new resource to be created.

Link copied to clipboard

The Load Balancing Rules associated with this Backend Address Pool.

Link copied to clipboard
val name: Output<String>

Specifies the name of the Backend Address Pool. Changing this forces a new resource to be created.

Link copied to clipboard
val outboundRules: Output<List<String>>

An array of the Load Balancing Outbound Rules associated with this Backend Address Pool.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

One or more tunnel_interface blocks as defined below.

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.