azure.lb.OutboundRule
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
using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
{
Location = "West Europe",
});
var examplePublicIp = new Azure.Network.PublicIp("examplePublicIp", new()
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
AllocationMethod = "Static",
});
var exampleLoadBalancer = new Azure.Lb.LoadBalancer("exampleLoadBalancer", new()
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
FrontendIpConfigurations = new[]
{
new Azure.Lb.Inputs.LoadBalancerFrontendIpConfigurationArgs
{
Name = "PublicIPAddress",
PublicIpAddressId = examplePublicIp.Id,
},
},
});
var exampleBackendAddressPool = new Azure.Lb.BackendAddressPool("exampleBackendAddressPool", new()
{
LoadbalancerId = exampleLoadBalancer.Id,
});
var exampleOutboundRule = new Azure.Lb.OutboundRule("exampleOutboundRule", new()
{
LoadbalancerId = exampleLoadBalancer.Id,
Protocol = "Tcp",
BackendAddressPoolId = exampleBackendAddressPool.Id,
FrontendIpConfigurations = new[]
{
new Azure.Lb.Inputs.OutboundRuleFrontendIpConfigurationArgs
{
Name = "PublicIPAddress",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/lb"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
examplePublicIp, err := network.NewPublicIp(ctx, "examplePublicIp", &network.PublicIpArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
AllocationMethod: pulumi.String("Static"),
})
if err != nil {
return err
}
exampleLoadBalancer, err := lb.NewLoadBalancer(ctx, "exampleLoadBalancer", &lb.LoadBalancerArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
FrontendIpConfigurations: lb.LoadBalancerFrontendIpConfigurationArray{
&lb.LoadBalancerFrontendIpConfigurationArgs{
Name: pulumi.String("PublicIPAddress"),
PublicIpAddressId: examplePublicIp.ID(),
},
},
})
if err != nil {
return err
}
exampleBackendAddressPool, err := lb.NewBackendAddressPool(ctx, "exampleBackendAddressPool", &lb.BackendAddressPoolArgs{
LoadbalancerId: exampleLoadBalancer.ID(),
})
if err != nil {
return err
}
_, err = lb.NewOutboundRule(ctx, "exampleOutboundRule", &lb.OutboundRuleArgs{
LoadbalancerId: exampleLoadBalancer.ID(),
Protocol: pulumi.String("Tcp"),
BackendAddressPoolId: exampleBackendAddressPool.ID(),
FrontendIpConfigurations: lb.OutboundRuleFrontendIpConfigurationArray{
&lb.OutboundRuleFrontendIpConfigurationArgs{
Name: pulumi.String("PublicIPAddress"),
},
},
})
if err != nil {
return err
}
return nil
})
}
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 pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_public_ip = azure.network.PublicIp("examplePublicIp",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
allocation_method="Static")
example_load_balancer = azure.lb.LoadBalancer("exampleLoadBalancer",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
frontend_ip_configurations=[azure.lb.LoadBalancerFrontendIpConfigurationArgs(
name="PublicIPAddress",
public_ip_address_id=example_public_ip.id,
)])
example_backend_address_pool = azure.lb.BackendAddressPool("exampleBackendAddressPool", loadbalancer_id=example_load_balancer.id)
example_outbound_rule = azure.lb.OutboundRule("exampleOutboundRule",
loadbalancer_id=example_load_balancer.id,
protocol="Tcp",
backend_address_pool_id=example_backend_address_pool.id,
frontend_ip_configurations=[azure.lb.OutboundRuleFrontendIpConfigurationArgs(
name="PublicIPAddress",
)])
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const examplePublicIp = new azure.network.PublicIp("examplePublicIp", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
allocationMethod: "Static",
});
const exampleLoadBalancer = new azure.lb.LoadBalancer("exampleLoadBalancer", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
frontendIpConfigurations: [{
name: "PublicIPAddress",
publicIpAddressId: examplePublicIp.id,
}],
});
const exampleBackendAddressPool = new azure.lb.BackendAddressPool("exampleBackendAddressPool", {loadbalancerId: exampleLoadBalancer.id});
const exampleOutboundRule = new azure.lb.OutboundRule("exampleOutboundRule", {
loadbalancerId: exampleLoadBalancer.id,
protocol: "Tcp",
backendAddressPoolId: exampleBackendAddressPool.id,
frontendIpConfigurations: [{
name: "PublicIPAddress",
}],
});
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
properties:
location: West Europe
examplePublicIp:
type: azure:network:PublicIp
properties:
location: ${exampleResourceGroup.location}
resourceGroupName: ${exampleResourceGroup.name}
allocationMethod: Static
exampleLoadBalancer:
type: azure:lb:LoadBalancer
properties:
location: ${exampleResourceGroup.location}
resourceGroupName: ${exampleResourceGroup.name}
frontendIpConfigurations:
- name: PublicIPAddress
publicIpAddressId: ${examplePublicIp.id}
exampleBackendAddressPool:
type: azure:lb:BackendAddressPool
properties:
loadbalancerId: ${exampleLoadBalancer.id}
exampleOutboundRule:
type: azure:lb:OutboundRule
properties:
loadbalancerId: ${exampleLoadBalancer.id}
protocol: Tcp
backendAddressPoolId: ${exampleBackendAddressPool.id}
frontendIpConfigurations:
- name: PublicIPAddress
Create OutboundRule Resource
new OutboundRule(name: string, args: OutboundRuleArgs, opts?: CustomResourceOptions);
@overload
def OutboundRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
allocated_outbound_ports: Optional[int] = None,
backend_address_pool_id: Optional[str] = None,
enable_tcp_reset: Optional[bool] = None,
frontend_ip_configurations: Optional[Sequence[OutboundRuleFrontendIpConfigurationArgs]] = None,
idle_timeout_in_minutes: Optional[int] = None,
loadbalancer_id: Optional[str] = None,
name: Optional[str] = None,
protocol: Optional[str] = None)
@overload
def OutboundRule(resource_name: str,
args: OutboundRuleArgs,
opts: Optional[ResourceOptions] = None)
func NewOutboundRule(ctx *Context, name string, args OutboundRuleArgs, opts ...ResourceOption) (*OutboundRule, error)
public OutboundRule(string name, OutboundRuleArgs args, CustomResourceOptions? opts = null)
public OutboundRule(String name, OutboundRuleArgs args)
public OutboundRule(String name, OutboundRuleArgs args, CustomResourceOptions options)
type: azure:lb:OutboundRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OutboundRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args OutboundRuleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args OutboundRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OutboundRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OutboundRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
OutboundRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The OutboundRule resource accepts the following input properties:
- Backend
Address stringPool Id The ID of the Backend Address Pool. Outbound traffic is randomly load balanced across IPs in the backend IPs.
- Loadbalancer
Id string The ID of the Load Balancer in which to create the Outbound Rule. Changing this forces a new resource to be created.
- Protocol string
The transport protocol for the external endpoint. Possible values are
Udp
,Tcp
orAll
.- Allocated
Outbound intPorts The number of outbound ports to be used for NAT. Defaults to
1024
.- Enable
Tcp boolReset 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.
- Frontend
Ip List<Pulumi.Configurations Azure. Lb. Inputs. Outbound Rule Frontend Ip Configuration Args> One or more
frontend_ip_configuration
blocks as defined below.- Idle
Timeout intIn Minutes The timeout for the TCP idle connection Defaults to
4
.- Name string
Specifies the name of the Outbound Rule. Changing this forces a new resource to be created.
- Backend
Address stringPool Id The ID of the Backend Address Pool. Outbound traffic is randomly load balanced across IPs in the backend IPs.
- Loadbalancer
Id string The ID of the Load Balancer in which to create the Outbound Rule. Changing this forces a new resource to be created.
- Protocol string
The transport protocol for the external endpoint. Possible values are
Udp
,Tcp
orAll
.- Allocated
Outbound intPorts The number of outbound ports to be used for NAT. Defaults to
1024
.- Enable
Tcp boolReset 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.
- Frontend
Ip []OutboundConfigurations Rule Frontend Ip Configuration Args One or more
frontend_ip_configuration
blocks as defined below.- Idle
Timeout intIn Minutes The timeout for the TCP idle connection Defaults to
4
.- Name string
Specifies the name of the Outbound Rule. Changing this forces a new resource to be created.
- backend
Address StringPool Id The ID of the Backend Address Pool. Outbound traffic is randomly load balanced across IPs in the backend IPs.
- loadbalancer
Id String The ID of the Load Balancer in which to create the Outbound Rule. Changing this forces a new resource to be created.
- protocol String
The transport protocol for the external endpoint. Possible values are
Udp
,Tcp
orAll
.- allocated
Outbound IntegerPorts The number of outbound ports to be used for NAT. Defaults to
1024
.- enable
Tcp BooleanReset 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.
- frontend
Ip List<OutboundConfigurations Rule Frontend Ip Configuration Args> One or more
frontend_ip_configuration
blocks as defined below.- idle
Timeout IntegerIn Minutes The timeout for the TCP idle connection Defaults to
4
.- name String
Specifies the name of the Outbound Rule. Changing this forces a new resource to be created.
- backend
Address stringPool Id The ID of the Backend Address Pool. Outbound traffic is randomly load balanced across IPs in the backend IPs.
- loadbalancer
Id string The ID of the Load Balancer in which to create the Outbound Rule. Changing this forces a new resource to be created.
- protocol string
The transport protocol for the external endpoint. Possible values are
Udp
,Tcp
orAll
.- allocated
Outbound numberPorts The number of outbound ports to be used for NAT. Defaults to
1024
.- enable
Tcp booleanReset 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.
- frontend
Ip OutboundConfigurations Rule Frontend Ip Configuration Args[] One or more
frontend_ip_configuration
blocks as defined below.- idle
Timeout numberIn Minutes The timeout for the TCP idle connection Defaults to
4
.- name string
Specifies the name of the Outbound Rule. Changing this forces a new resource to be created.
- backend_
address_ strpool_ id The ID of the Backend Address Pool. Outbound traffic is randomly load balanced across IPs in the backend IPs.
- loadbalancer_
id str The ID of the Load Balancer in which to create the Outbound Rule. Changing this forces a new resource to be created.
- protocol str
The transport protocol for the external endpoint. Possible values are
Udp
,Tcp
orAll
.- allocated_
outbound_ intports The number of outbound ports to be used for NAT. Defaults to
1024
.- enable_
tcp_ boolreset 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.
- frontend_
ip_ Sequence[Outboundconfigurations Rule Frontend Ip Configuration Args] One or more
frontend_ip_configuration
blocks as defined below.- idle_
timeout_ intin_ minutes The timeout for the TCP idle connection Defaults to
4
.- name str
Specifies the name of the Outbound Rule. Changing this forces a new resource to be created.
- backend
Address StringPool Id The ID of the Backend Address Pool. Outbound traffic is randomly load balanced across IPs in the backend IPs.
- loadbalancer
Id String The ID of the Load Balancer in which to create the Outbound Rule. Changing this forces a new resource to be created.
- protocol String
The transport protocol for the external endpoint. Possible values are
Udp
,Tcp
orAll
.- allocated
Outbound NumberPorts The number of outbound ports to be used for NAT. Defaults to
1024
.- enable
Tcp BooleanReset 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.
- frontend
Ip List<Property Map>Configurations One or more
frontend_ip_configuration
blocks as defined below.- idle
Timeout NumberIn Minutes The timeout for the TCP idle connection Defaults to
4
.- name String
Specifies the name of the Outbound Rule. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the OutboundRule resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing OutboundRule Resource
Get an existing OutboundRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: OutboundRuleState, opts?: CustomResourceOptions): OutboundRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allocated_outbound_ports: Optional[int] = None,
backend_address_pool_id: Optional[str] = None,
enable_tcp_reset: Optional[bool] = None,
frontend_ip_configurations: Optional[Sequence[OutboundRuleFrontendIpConfigurationArgs]] = None,
idle_timeout_in_minutes: Optional[int] = None,
loadbalancer_id: Optional[str] = None,
name: Optional[str] = None,
protocol: Optional[str] = None) -> OutboundRule
func GetOutboundRule(ctx *Context, name string, id IDInput, state *OutboundRuleState, opts ...ResourceOption) (*OutboundRule, error)
public static OutboundRule Get(string name, Input<string> id, OutboundRuleState? state, CustomResourceOptions? opts = null)
public static OutboundRule get(String name, Output<String> id, OutboundRuleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Allocated
Outbound intPorts The number of outbound ports to be used for NAT. Defaults to
1024
.- Backend
Address stringPool Id The ID of the Backend Address Pool. Outbound traffic is randomly load balanced across IPs in the backend IPs.
- Enable
Tcp boolReset 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.
- Frontend
Ip List<Pulumi.Configurations Azure. Lb. Inputs. Outbound Rule Frontend Ip Configuration Args> One or more
frontend_ip_configuration
blocks as defined below.- Idle
Timeout intIn Minutes The timeout for the TCP idle connection Defaults to
4
.- Loadbalancer
Id string The ID of the Load Balancer in which to create the Outbound Rule. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Outbound Rule. Changing this forces a new resource to be created.
- Protocol string
The transport protocol for the external endpoint. Possible values are
Udp
,Tcp
orAll
.
- Allocated
Outbound intPorts The number of outbound ports to be used for NAT. Defaults to
1024
.- Backend
Address stringPool Id The ID of the Backend Address Pool. Outbound traffic is randomly load balanced across IPs in the backend IPs.
- Enable
Tcp boolReset 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.
- Frontend
Ip []OutboundConfigurations Rule Frontend Ip Configuration Args One or more
frontend_ip_configuration
blocks as defined below.- Idle
Timeout intIn Minutes The timeout for the TCP idle connection Defaults to
4
.- Loadbalancer
Id string The ID of the Load Balancer in which to create the Outbound Rule. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Outbound Rule. Changing this forces a new resource to be created.
- Protocol string
The transport protocol for the external endpoint. Possible values are
Udp
,Tcp
orAll
.
- allocated
Outbound IntegerPorts The number of outbound ports to be used for NAT. Defaults to
1024
.- backend
Address StringPool Id The ID of the Backend Address Pool. Outbound traffic is randomly load balanced across IPs in the backend IPs.
- enable
Tcp BooleanReset 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.
- frontend
Ip List<OutboundConfigurations Rule Frontend Ip Configuration Args> One or more
frontend_ip_configuration
blocks as defined below.- idle
Timeout IntegerIn Minutes The timeout for the TCP idle connection Defaults to
4
.- loadbalancer
Id String The ID of the Load Balancer in which to create the Outbound Rule. Changing this forces a new resource to be created.
- name String
Specifies the name of the Outbound Rule. Changing this forces a new resource to be created.
- protocol String
The transport protocol for the external endpoint. Possible values are
Udp
,Tcp
orAll
.
- allocated
Outbound numberPorts The number of outbound ports to be used for NAT. Defaults to
1024
.- backend
Address stringPool Id The ID of the Backend Address Pool. Outbound traffic is randomly load balanced across IPs in the backend IPs.
- enable
Tcp booleanReset 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.
- frontend
Ip OutboundConfigurations Rule Frontend Ip Configuration Args[] One or more
frontend_ip_configuration
blocks as defined below.- idle
Timeout numberIn Minutes The timeout for the TCP idle connection Defaults to
4
.- loadbalancer
Id string The ID of the Load Balancer in which to create the Outbound Rule. Changing this forces a new resource to be created.
- name string
Specifies the name of the Outbound Rule. Changing this forces a new resource to be created.
- protocol string
The transport protocol for the external endpoint. Possible values are
Udp
,Tcp
orAll
.
- allocated_
outbound_ intports The number of outbound ports to be used for NAT. Defaults to
1024
.- backend_
address_ strpool_ id The ID of the Backend Address Pool. Outbound traffic is randomly load balanced across IPs in the backend IPs.
- enable_
tcp_ boolreset 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.
- frontend_
ip_ Sequence[Outboundconfigurations Rule Frontend Ip Configuration Args] One or more
frontend_ip_configuration
blocks as defined below.- idle_
timeout_ intin_ minutes The timeout for the TCP idle connection Defaults to
4
.- loadbalancer_
id str The ID of the Load Balancer in which to create the Outbound Rule. Changing this forces a new resource to be created.
- name str
Specifies the name of the Outbound Rule. Changing this forces a new resource to be created.
- protocol str
The transport protocol for the external endpoint. Possible values are
Udp
,Tcp
orAll
.
- allocated
Outbound NumberPorts The number of outbound ports to be used for NAT. Defaults to
1024
.- backend
Address StringPool Id The ID of the Backend Address Pool. Outbound traffic is randomly load balanced across IPs in the backend IPs.
- enable
Tcp BooleanReset 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.
- frontend
Ip List<Property Map>Configurations One or more
frontend_ip_configuration
blocks as defined below.- idle
Timeout NumberIn Minutes The timeout for the TCP idle connection Defaults to
4
.- loadbalancer
Id String The ID of the Load Balancer in which to create the Outbound Rule. Changing this forces a new resource to be created.
- name String
Specifies the name of the Outbound Rule. Changing this forces a new resource to be created.
- protocol String
The transport protocol for the external endpoint. Possible values are
Udp
,Tcp
orAll
.
Supporting Types
OutboundRuleFrontendIpConfiguration
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
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.