LoadBalancingRule Constructors

Definition

Overloads

LoadBalancingRule()

Initializes a new instance of the LoadBalancingRule class.

LoadBalancingRule(String, Int32, String, SubResource, SubResource, IList<SubResource>, SubResource, String, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, String, String, String, String)

Initializes a new instance of the LoadBalancingRule class.

LoadBalancingRule()

Initializes a new instance of the LoadBalancingRule class.

public LoadBalancingRule ();
Public Sub New ()

Applies to

LoadBalancingRule(String, Int32, String, SubResource, SubResource, IList<SubResource>, SubResource, String, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, String, String, String, String)

Initializes a new instance of the LoadBalancingRule class.

public LoadBalancingRule (string protocol, int frontendPort, string id = default, Microsoft.Azure.Management.Network.Models.SubResource frontendIPConfiguration = default, Microsoft.Azure.Management.Network.Models.SubResource backendAddressPool = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.SubResource> backendAddressPools = default, Microsoft.Azure.Management.Network.Models.SubResource probe = default, string loadDistribution = default, int? backendPort = default, int? idleTimeoutInMinutes = default, bool? enableFloatingIP = default, bool? enableTcpReset = default, bool? disableOutboundSnat = default, string provisioningState = default, string name = default, string etag = default, string type = default);
new Microsoft.Azure.Management.Network.Models.LoadBalancingRule : string * int * string * Microsoft.Azure.Management.Network.Models.SubResource * Microsoft.Azure.Management.Network.Models.SubResource * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.SubResource> * Microsoft.Azure.Management.Network.Models.SubResource * string * Nullable<int> * Nullable<int> * Nullable<bool> * Nullable<bool> * Nullable<bool> * string * string * string * string -> Microsoft.Azure.Management.Network.Models.LoadBalancingRule
Public Sub New (protocol As String, frontendPort As Integer, Optional id As String = Nothing, Optional frontendIPConfiguration As SubResource = Nothing, Optional backendAddressPool As SubResource = Nothing, Optional backendAddressPools As IList(Of SubResource) = Nothing, Optional probe As SubResource = Nothing, Optional loadDistribution As String = Nothing, Optional backendPort As Nullable(Of Integer) = Nothing, Optional idleTimeoutInMinutes As Nullable(Of Integer) = Nothing, Optional enableFloatingIP As Nullable(Of Boolean) = Nothing, Optional enableTcpReset As Nullable(Of Boolean) = Nothing, Optional disableOutboundSnat As Nullable(Of Boolean) = Nothing, Optional provisioningState As String = Nothing, Optional name As String = Nothing, Optional etag As String = Nothing, Optional type As String = Nothing)

Parameters

protocol
String

The reference to the transport protocol used by the load balancing rule. Possible values include: 'Udp', 'Tcp', 'All'

frontendPort
Int32

The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values are between 0 and 65534. Note that value 0 enables "Any Port".

id
String

Resource ID.

frontendIPConfiguration
SubResource

A reference to frontend IP addresses.

backendAddressPool
SubResource

A reference to a pool of DIPs. Inbound traffic is randomly load balanced across IPs in the backend IPs.

backendAddressPools
IList<SubResource>

An array of references to pool of DIPs.

probe
SubResource

The reference to the load balancer probe used by the load balancing rule.

loadDistribution
String

The load distribution policy for this rule. Possible values include: 'Default', 'SourceIP', 'SourceIPProtocol'

backendPort
Nullable<Int32>

The port used for internal connections on the endpoint. Acceptable values are between 0 and 65535. Note that value 0 enables "Any Port".

idleTimeoutInMinutes
Nullable<Int32>

The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP.

enableFloatingIP
Nullable<Boolean>

Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint.

enableTcpReset
Nullable<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.

disableOutboundSnat
Nullable<Boolean>

Configures SNAT for the VMs in the backend pool to use the publicIP address specified in the frontend of the load balancing rule.

provisioningState
String

The provisioning state of the load balancing rule resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'

name
String

The name of the resource that is unique within the set of load balancing rules used by the load balancer. This name can be used to access the resource.

etag
String

A unique read-only string that changes whenever the resource is updated.

type
String

Type of the resource.

Applies to