We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
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 Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var examplePublicIp = new Azure.Network.PublicIp("examplePublicIp", new Azure.Network.PublicIpArgs
{
Location = "West US",
ResourceGroupName = exampleResourceGroup.Name,
AllocationMethod = "Static",
});
var exampleLoadBalancer = new Azure.Lb.LoadBalancer("exampleLoadBalancer", new Azure.Lb.LoadBalancerArgs
{
Location = "West US",
ResourceGroupName = exampleResourceGroup.Name,
FrontendIpConfigurations =
{
new Azure.Lb.Inputs.LoadBalancerFrontendIpConfigurationArgs
{
Name = "PublicIPAddress",
PublicIpAddressId = examplePublicIp.Id,
},
},
});
var exampleBackendAddressPool = new Azure.Lb.BackendAddressPool("exampleBackendAddressPool", new Azure.Lb.BackendAddressPoolArgs
{
ResourceGroupName = exampleResourceGroup.Name,
LoadbalancerId = exampleLoadBalancer.Id,
});
var exampleOutboundRule = new Azure.Lb.OutboundRule("exampleOutboundRule", new Azure.Lb.OutboundRuleArgs
{
ResourceGroupName = exampleResourceGroup.Name,
LoadbalancerId = exampleLoadBalancer.Id,
Protocol = "Tcp",
BackendAddressPoolId = exampleBackendAddressPool.Id,
FrontendIpConfigurations =
{
new Azure.Lb.Inputs.OutboundRuleFrontendIpConfigurationArgs
{
Name = "PublicIPAddress",
},
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/lb"
"github.com/pulumi/pulumi-azure/sdk/v4/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: pulumi.String("West US"),
ResourceGroupName: exampleResourceGroup.Name,
AllocationMethod: pulumi.String("Static"),
})
if err != nil {
return err
}
exampleLoadBalancer, err := lb.NewLoadBalancer(ctx, "exampleLoadBalancer", &lb.LoadBalancerArgs{
Location: pulumi.String("West US"),
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{
ResourceGroupName: exampleResourceGroup.Name,
LoadbalancerId: exampleLoadBalancer.ID(),
})
if err != nil {
return err
}
_, err = lb.NewOutboundRule(ctx, "exampleOutboundRule", &lb.OutboundRuleArgs{
ResourceGroupName: exampleResourceGroup.Name,
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
})
}
Example coming soon!
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: "West US",
resourceGroupName: exampleResourceGroup.name,
allocationMethod: "Static",
});
const exampleLoadBalancer = new azure.lb.LoadBalancer("exampleLoadBalancer", {
location: "West US",
resourceGroupName: exampleResourceGroup.name,
frontendIpConfigurations: [{
name: "PublicIPAddress",
publicIpAddressId: examplePublicIp.id,
}],
});
const exampleBackendAddressPool = new azure.lb.BackendAddressPool("exampleBackendAddressPool", {
resourceGroupName: exampleResourceGroup.name,
loadbalancerId: exampleLoadBalancer.id,
});
const exampleOutboundRule = new azure.lb.OutboundRule("exampleOutboundRule", {
resourceGroupName: exampleResourceGroup.name,
loadbalancerId: exampleLoadBalancer.id,
protocol: "Tcp",
backendAddressPoolId: exampleBackendAddressPool.id,
frontendIpConfigurations: [{
name: "PublicIPAddress",
}],
});
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="West US",
resource_group_name=example_resource_group.name,
allocation_method="Static")
example_load_balancer = azure.lb.LoadBalancer("exampleLoadBalancer",
location="West US",
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",
resource_group_name=example_resource_group.name,
loadbalancer_id=example_load_balancer.id)
example_outbound_rule = azure.lb.OutboundRule("exampleOutboundRule",
resource_group_name=example_resource_group.name,
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",
)])
Example coming soon!
Create OutboundRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OutboundRule(name: string, args: OutboundRuleArgs, opts?: CustomResourceOptions);@overload
def OutboundRule(resource_name: str,
args: OutboundRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OutboundRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
backend_address_pool_id: Optional[str] = None,
loadbalancer_id: Optional[str] = None,
protocol: Optional[str] = None,
resource_group_name: Optional[str] = None,
allocated_outbound_ports: Optional[int] = None,
enable_tcp_reset: Optional[bool] = None,
frontend_ip_configurations: Optional[Sequence[OutboundRuleFrontendIpConfigurationArgs]] = None,
idle_timeout_in_minutes: Optional[int] = None,
name: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var outboundRuleResource = new Azure.Lb.OutboundRule("outboundRuleResource", new()
{
BackendAddressPoolId = "string",
LoadbalancerId = "string",
Protocol = "string",
ResourceGroupName = "string",
AllocatedOutboundPorts = 0,
EnableTcpReset = false,
FrontendIpConfigurations = new[]
{
new Azure.Lb.Inputs.OutboundRuleFrontendIpConfigurationArgs
{
Name = "string",
Id = "string",
},
},
IdleTimeoutInMinutes = 0,
Name = "string",
});
example, err := lb.NewOutboundRule(ctx, "outboundRuleResource", &lb.OutboundRuleArgs{
BackendAddressPoolId: pulumi.String("string"),
LoadbalancerId: pulumi.String("string"),
Protocol: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
AllocatedOutboundPorts: pulumi.Int(0),
EnableTcpReset: pulumi.Bool(false),
FrontendIpConfigurations: lb.OutboundRuleFrontendIpConfigurationArray{
&lb.OutboundRuleFrontendIpConfigurationArgs{
Name: pulumi.String("string"),
Id: pulumi.String("string"),
},
},
IdleTimeoutInMinutes: pulumi.Int(0),
Name: pulumi.String("string"),
})
var outboundRuleResource = new OutboundRule("outboundRuleResource", OutboundRuleArgs.builder()
.backendAddressPoolId("string")
.loadbalancerId("string")
.protocol("string")
.resourceGroupName("string")
.allocatedOutboundPorts(0)
.enableTcpReset(false)
.frontendIpConfigurations(OutboundRuleFrontendIpConfigurationArgs.builder()
.name("string")
.id("string")
.build())
.idleTimeoutInMinutes(0)
.name("string")
.build());
outbound_rule_resource = azure.lb.OutboundRule("outboundRuleResource",
backend_address_pool_id="string",
loadbalancer_id="string",
protocol="string",
resource_group_name="string",
allocated_outbound_ports=0,
enable_tcp_reset=False,
frontend_ip_configurations=[{
"name": "string",
"id": "string",
}],
idle_timeout_in_minutes=0,
name="string")
const outboundRuleResource = new azure.lb.OutboundRule("outboundRuleResource", {
backendAddressPoolId: "string",
loadbalancerId: "string",
protocol: "string",
resourceGroupName: "string",
allocatedOutboundPorts: 0,
enableTcpReset: false,
frontendIpConfigurations: [{
name: "string",
id: "string",
}],
idleTimeoutInMinutes: 0,
name: "string",
});
type: azure:lb:OutboundRule
properties:
allocatedOutboundPorts: 0
backendAddressPoolId: string
enableTcpReset: false
frontendIpConfigurations:
- id: string
name: string
idleTimeoutInMinutes: 0
loadbalancerId: string
name: string
protocol: string
resourceGroupName: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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,TcporAll. - Resource
Group stringName - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- Allocated
Outbound intPorts - The number of outbound ports to be used for NAT.
- 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<OutboundConfigurations Rule Frontend Ip Configuration> - One or more
frontend_ip_configurationblocks as defined below. - Idle
Timeout intIn Minutes - The timeout for the TCP idle connection
- 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,TcporAll. - Resource
Group stringName - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- Allocated
Outbound intPorts - The number of outbound ports to be used for NAT.
- 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_configurationblocks as defined below. - Idle
Timeout intIn Minutes - The timeout for the TCP idle connection
- 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,TcporAll. - resource
Group StringName - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- allocated
Outbound IntegerPorts - The number of outbound ports to be used for NAT.
- 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> - One or more
frontend_ip_configurationblocks as defined below. - idle
Timeout IntegerIn Minutes - The timeout for the TCP idle connection
- 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,TcporAll. - resource
Group stringName - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- allocated
Outbound numberPorts - The number of outbound ports to be used for NAT.
- 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[] - One or more
frontend_ip_configurationblocks as defined below. - idle
Timeout numberIn Minutes - The timeout for the TCP idle connection
- 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,TcporAll. - resource_
group_ strname - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- allocated_
outbound_ intports - The number of outbound ports to be used for NAT.
- 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_configurationblocks as defined below. - idle_
timeout_ intin_ minutes - The timeout for the TCP idle connection
- 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,TcporAll. - resource
Group StringName - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- allocated
Outbound NumberPorts - The number of outbound ports to be used for NAT.
- 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_configurationblocks as defined below. - idle
Timeout NumberIn Minutes - The timeout for the TCP idle connection
- 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,
resource_group_name: Optional[str] = None) -> OutboundRulefunc 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)resources: _: type: azure:lb:OutboundRule get: id: ${id}- 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.
- 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<OutboundConfigurations Rule Frontend Ip Configuration> - One or more
frontend_ip_configurationblocks as defined below. - Idle
Timeout intIn Minutes - The timeout for the TCP idle connection
- 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,TcporAll. - Resource
Group stringName - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- Allocated
Outbound intPorts - The number of outbound ports to be used for NAT.
- 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_configurationblocks as defined below. - Idle
Timeout intIn Minutes - The timeout for the TCP idle connection
- 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,TcporAll. - Resource
Group stringName - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- allocated
Outbound IntegerPorts - The number of outbound ports to be used for NAT.
- 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> - One or more
frontend_ip_configurationblocks as defined below. - idle
Timeout IntegerIn Minutes - The timeout for the TCP idle connection
- 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,TcporAll. - resource
Group StringName - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- allocated
Outbound numberPorts - The number of outbound ports to be used for NAT.
- 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[] - One or more
frontend_ip_configurationblocks as defined below. - idle
Timeout numberIn Minutes - The timeout for the TCP idle connection
- 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,TcporAll. - resource
Group stringName - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- allocated_
outbound_ intports - The number of outbound ports to be used for NAT.
- 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_configurationblocks as defined below. - idle_
timeout_ intin_ minutes - The timeout for the TCP idle connection
- 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,TcporAll. - resource_
group_ strname - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- allocated
Outbound NumberPorts - The number of outbound ports to be used for NAT.
- 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_configurationblocks as defined below. - idle
Timeout NumberIn Minutes - The timeout for the TCP idle connection
- 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,TcporAll. - resource
Group StringName - The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
Supporting Types
OutboundRuleFrontendIpConfiguration, OutboundRuleFrontendIpConfigurationArgs
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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
