Show / Hide Table of Contents

Class NatRule

Manages a Load Balancer NAT Rule.

NOTE: This resource cannot be used with with virtual machine scale sets, instead use the azure.lb.NatPool resource.

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

Inheritance
System.Object
Resource
CustomResource
NatRule
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.Lb
Assembly: Pulumi.Azure.dll
Syntax
public class NatRule : CustomResource

Constructors

View Source

NatRule(String, NatRuleArgs, CustomResourceOptions)

Create a NatRule resource with the given unique name, arguments, and options.

Declaration
public NatRule(string name, NatRuleArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

NatRuleArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

BackendIpConfigurationId

Declaration
public Output<string> BackendIpConfigurationId { get; }
Property Value
Type Description
Output<System.String>
View Source

BackendPort

The port used for internal connections on the endpoint. Possible values range between 1 and 65535, inclusive.

Declaration
public Output<int> BackendPort { get; }
Property Value
Type Description
Output<System.Int32>
View Source

EnableFloatingIp

Are the Floating IPs enabled for this Load Balncer Rule? A "floating” IP is reassigned to a secondary server in case the primary server fails. Required to configure a SQL AlwaysOn Availability Group. Defaults to false.

Declaration
public Output<bool> EnableFloatingIp { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

EnableTcpReset

Is TCP Reset enabled for this Load Balancer Rule? Defaults to false.

Declaration
public Output<bool?> EnableTcpReset { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

FrontendIpConfigurationId

Declaration
public Output<string> FrontendIpConfigurationId { get; }
Property Value
Type Description
Output<System.String>
View Source

FrontendIpConfigurationName

The name of the frontend IP configuration exposing this rule.

Declaration
public Output<string> FrontendIpConfigurationName { get; }
Property Value
Type Description
Output<System.String>
View Source

FrontendPort

The port for the external endpoint. Port numbers for each Rule must be unique within the Load Balancer. Possible values range between 1 and 65534, inclusive.

Declaration
public Output<int> FrontendPort { get; }
Property Value
Type Description
Output<System.Int32>
View Source

IdleTimeoutInMinutes

Specifies the idle timeout in minutes for TCP connections. Valid values are between 4 and 30 minutes. Defaults to 4 minutes.

Declaration
public Output<int> IdleTimeoutInMinutes { get; }
Property Value
Type Description
Output<System.Int32>
View Source

LoadbalancerId

The ID of the Load Balancer in which to create the NAT Rule.

Declaration
public Output<string> LoadbalancerId { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

Specifies the name of the NAT Rule.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Protocol

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

Declaration
public Output<string> Protocol { get; }
Property Value
Type Description
Output<System.String>
View Source

ResourceGroupName

The name of the resource group in which to create the resource.

Declaration
public Output<string> ResourceGroupName { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, NatRuleState, CustomResourceOptions)

Get an existing NatRule resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static NatRule Get(string name, Input<string> id, NatRuleState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

NatRuleState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
NatRule
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.