ArmNetworkModelFactory.LoadBalancingRuleData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.Network.LoadBalancingRuleData LoadBalancingRuleData(Azure.Core.ResourceIdentifier id, string name, string type, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.WritableSubResource> backendAddressPools, Azure.ResourceManager.Network.Models.LoadBalancingTransportProtocol? protocol, Azure.ResourceManager.Network.Models.LoadDistribution? loadDistribution, int? frontendPort, int? backendPort, int? idleTimeoutInMinutes, bool? enableFloatingIP, bool? enableTcpReset, bool? disableOutboundSnat, bool? enableConnectionTracking, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState, Azure.Core.ResourceIdentifier frontendIPConfigurationId, Azure.Core.ResourceIdentifier backendAddressPoolId, Azure.Core.ResourceIdentifier probeId, Azure.ETag? eTag);
static member LoadBalancingRuleData : Azure.Core.ResourceIdentifier * string * string * seq<Azure.ResourceManager.Resources.Models.WritableSubResource> * Nullable<Azure.ResourceManager.Network.Models.LoadBalancingTransportProtocol> * Nullable<Azure.ResourceManager.Network.Models.LoadDistribution> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<Azure.ResourceManager.Network.Models.NetworkProvisioningState> * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Nullable<Azure.ETag> -> Azure.ResourceManager.Network.LoadBalancingRuleData
Public Shared Function LoadBalancingRuleData (id As ResourceIdentifier, name As String, type As String, backendAddressPools As IEnumerable(Of WritableSubResource), protocol As Nullable(Of LoadBalancingTransportProtocol), loadDistribution As Nullable(Of LoadDistribution), frontendPort As Nullable(Of Integer), backendPort As Nullable(Of Integer), idleTimeoutInMinutes As Nullable(Of Integer), enableFloatingIP As Nullable(Of Boolean), enableTcpReset As Nullable(Of Boolean), disableOutboundSnat As Nullable(Of Boolean), enableConnectionTracking As Nullable(Of Boolean), provisioningState As Nullable(Of NetworkProvisioningState), frontendIPConfigurationId As ResourceIdentifier, backendAddressPoolId As ResourceIdentifier, probeId As ResourceIdentifier, eTag As Nullable(Of ETag)) As LoadBalancingRuleData
Parameters
Resource ID.
- name
- String
Name of the resource.
- type
- String
Resource type.
- backendAddressPools
- IEnumerable<WritableSubResource>
An array of references to pool of DIPs.
- protocol
- Nullable<LoadBalancingTransportProtocol>
The reference to the transport protocol used by the load balancing rule.
- loadDistribution
- Nullable<LoadDistribution>
The load distribution policy for this rule.
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".
The port used for internal connections on the endpoint. Acceptable values are between 0 and 65535. Note that value 0 enables "Any Port".
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.
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.
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.
Configures SNAT for the VMs in the backend pool to use the publicIP address specified in the frontend of the load balancing rule.
Enables UDP flow tracking for the load balancing rule. This property is retained for rule-level configuration compatibility. When enableConnectionTracking is specified on the associated frontend IP configuration, the frontend setting takes precedence.
- provisioningState
- Nullable<NetworkProvisioningState>
The provisioning state of the load balancing rule resource.
- frontendIPConfigurationId
- ResourceIdentifier
Resource ID.
- backendAddressPoolId
- ResourceIdentifier
Resource ID.
- probeId
- ResourceIdentifier
Resource ID.
Returns
A new LoadBalancingRuleData instance for mocking.