共用方式為


LoadBalancingRuleInner Constructors

Definition

Overloads

LoadBalancingRuleInner()

Initializes a new instance of the LoadBalancingRuleInner class.

LoadBalancingRuleInner(TransportProtocol, Int32, String, SubResource, SubResource, SubResource, LoadDistribution, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, ProvisioningState, String, String, String)

Initializes a new instance of the LoadBalancingRuleInner class.

LoadBalancingRuleInner()

Initializes a new instance of the LoadBalancingRuleInner class.

public LoadBalancingRuleInner ();
Public Sub New ()

Applies to

LoadBalancingRuleInner(TransportProtocol, Int32, String, SubResource, SubResource, SubResource, LoadDistribution, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, ProvisioningState, String, String, String)

Initializes a new instance of the LoadBalancingRuleInner class.

public LoadBalancingRuleInner (Microsoft.Azure.Management.Network.Fluent.Models.TransportProtocol protocol, int frontendPort, string id = default, Microsoft.Azure.Management.ResourceManager.Fluent.SubResource frontendIPConfiguration = default, Microsoft.Azure.Management.ResourceManager.Fluent.SubResource backendAddressPool = default, Microsoft.Azure.Management.ResourceManager.Fluent.SubResource probe = default, Microsoft.Azure.Management.Network.Fluent.Models.LoadDistribution loadDistribution = default, int? backendPort = default, int? idleTimeoutInMinutes = default, bool? enableFloatingIP = default, bool? enableTcpReset = default, bool? disableOutboundSnat = default, Microsoft.Azure.Management.Network.Fluent.Models.ProvisioningState provisioningState = default, string name = default, string etag = default, string type = default);
new Microsoft.Azure.Management.Network.Fluent.Models.LoadBalancingRuleInner : Microsoft.Azure.Management.Network.Fluent.Models.TransportProtocol * int * string * Microsoft.Azure.Management.ResourceManager.Fluent.SubResource * Microsoft.Azure.Management.ResourceManager.Fluent.SubResource * Microsoft.Azure.Management.ResourceManager.Fluent.SubResource * Microsoft.Azure.Management.Network.Fluent.Models.LoadDistribution * Nullable<int> * Nullable<int> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.Azure.Management.Network.Fluent.Models.ProvisioningState * string * string * string -> Microsoft.Azure.Management.Network.Fluent.Models.LoadBalancingRuleInner
Public Sub New (protocol As TransportProtocol, frontendPort As Integer, Optional id As String = Nothing, Optional frontendIPConfiguration As SubResource = Nothing, Optional backendAddressPool As SubResource = Nothing, Optional probe As SubResource = Nothing, Optional loadDistribution As LoadDistribution = 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 ProvisioningState = Nothing, Optional name As String = Nothing, Optional etag As String = Nothing, Optional type As String = Nothing)

Parameters

protocol
TransportProtocol

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

probe
SubResource

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

loadDistribution
LoadDistribution

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
ProvisioningState

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