OutboundRule

class OutboundRule : KotlinCustomResource

Manages a Load Balancer Outbound Rule.

NOTE When using this resource, the Load Balancer needs to have a FrontEnd IP Configuration and a Backend Address Pool 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 com.pulumi.azure.lb.OutboundRule;
import com.pulumi.azure.lb.OutboundRuleArgs;
import com.pulumi.azure.lb.inputs.OutboundRuleFrontendIpConfigurationArgs;
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());
var exampleOutboundRule = new OutboundRule("exampleOutboundRule", OutboundRuleArgs.builder()
.loadbalancerId(exampleLoadBalancer.id())
.protocol("Tcp")
.backendAddressPoolId(exampleBackendAddressPool.id())
.frontendIpConfigurations(OutboundRuleFrontendIpConfigurationArgs.builder()
.name("PublicIPAddress")
.build())
.build());
}
}

Import

Load Balancer Outbound Rules can be imported using the resource id, e.g.

$ pulumi import azure:lb/outboundRule:OutboundRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1

Properties

Link copied to clipboard

The number of outbound ports to be used for NAT. Defaults to 1024.

Link copied to clipboard

The ID of the Backend Address Pool. Outbound traffic is randomly load balanced across IPs in the backend IPs.

Link copied to clipboard
val enableTcpReset: Output<Boolean>?

Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP.

Link copied to clipboard

One or more frontend_ip_configuration blocks as defined below.

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

The timeout for the TCP idle connection Defaults to 4.

Link copied to clipboard
val loadbalancerId: Output<String>

The ID of the Load Balancer in which to create the Outbound Rule. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>

Specifies the name of the Outbound Rule. Changing this forces a new resource to be created.

Link copied to clipboard
val protocol: Output<String>

The transport protocol for the external endpoint. Possible values are Udp, Tcp or All.

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