Delen via


ArmNetworkModelFactory.LoadBalancingRuleProperties Method

Definition

Initializes a new instance of LoadBalancingRuleProperties.

public static Azure.ResourceManager.Network.Models.LoadBalancingRuleProperties LoadBalancingRuleProperties(Azure.Core.ResourceIdentifier frontendIPConfigurationId = default, Azure.Core.ResourceIdentifier backendAddressPoolId = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.WritableSubResource> backendAddressPools = default, Azure.Core.ResourceIdentifier probeId = default, Azure.ResourceManager.Network.Models.LoadBalancingTransportProtocol protocol = default, Azure.ResourceManager.Network.Models.LoadDistribution? loadDistribution = default, int frontendPort = 0, int? backendPort = default, int? idleTimeoutInMinutes = default, bool? enableFloatingIP = default, bool? enableTcpReset = default, bool? disableOutboundSnat = default, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default, System.Collections.Generic.IDictionary<string,BinaryData> additionalProperties = default);
static member LoadBalancingRuleProperties : Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * seq<Azure.ResourceManager.Resources.Models.WritableSubResource> * Azure.Core.ResourceIdentifier * Azure.ResourceManager.Network.Models.LoadBalancingTransportProtocol * Nullable<Azure.ResourceManager.Network.Models.LoadDistribution> * int * Nullable<int> * Nullable<int> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<Azure.ResourceManager.Network.Models.NetworkProvisioningState> * System.Collections.Generic.IDictionary<string, BinaryData> -> Azure.ResourceManager.Network.Models.LoadBalancingRuleProperties
Public Shared Function LoadBalancingRuleProperties (Optional frontendIPConfigurationId As ResourceIdentifier = Nothing, Optional backendAddressPoolId As ResourceIdentifier = Nothing, Optional backendAddressPools As IEnumerable(Of WritableSubResource) = Nothing, Optional probeId As ResourceIdentifier = Nothing, Optional protocol As LoadBalancingTransportProtocol = Nothing, Optional loadDistribution As Nullable(Of LoadDistribution) = Nothing, Optional frontendPort As Integer = 0, 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 Nullable(Of NetworkProvisioningState) = Nothing, Optional additionalProperties As IDictionary(Of String, BinaryData) = Nothing) As LoadBalancingRuleProperties

Parameters

frontendIPConfigurationId
ResourceIdentifier

A reference to frontend IP addresses.

backendAddressPoolId
ResourceIdentifier

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

backendAddressPools
IEnumerable<WritableSubResource>

An array of references to pool of DIPs.

probeId
ResourceIdentifier

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

protocol
LoadBalancingTransportProtocol

The reference to the transport protocol used by the load balancing rule.

loadDistribution
Nullable<LoadDistribution>

The load distribution policy for this rule.

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

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
Nullable<NetworkProvisioningState>

The provisioning state of the load balancing rule resource.

additionalProperties
IDictionary<String,BinaryData>

Additional Properties.

Returns

A new LoadBalancingRuleProperties instance for mocking.

Applies to