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.
Initializes a new instance of LoadBalancingRuleData.
public static Azure.ResourceManager.Network.LoadBalancingRuleData LoadBalancingRuleData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType? resourceType = default, Azure.ETag? etag = default, 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 = default, int? backendPort = default, int? idleTimeoutInMinutes = default, bool? enableFloatingIP = default, bool? enableTcpReset = default, bool? disableOutboundSnat = default, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default);
static member LoadBalancingRuleData : Azure.Core.ResourceIdentifier * string * Nullable<Azure.Core.ResourceType> * Nullable<Azure.ETag> * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * seq<Azure.ResourceManager.Resources.Models.WritableSubResource> * Azure.Core.ResourceIdentifier * 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<Azure.ResourceManager.Network.Models.NetworkProvisioningState> -> Azure.ResourceManager.Network.LoadBalancingRuleData
Public Shared Function LoadBalancingRuleData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As Nullable(Of ResourceType) = Nothing, Optional etag As Nullable(Of ETag) = Nothing, 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 Nullable(Of LoadBalancingTransportProtocol) = Nothing, Optional loadDistribution As Nullable(Of LoadDistribution) = Nothing, Optional frontendPort As Nullable(Of Integer) = 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 Nullable(Of NetworkProvisioningState) = Nothing) As LoadBalancingRuleData
Parameters
Resource ID.
- name
- String
Resource name.
- resourceType
- Nullable<ResourceType>
Resource type.
- 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
- 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.
- provisioningState
- Nullable<NetworkProvisioningState>
The provisioning state of the load balancing rule resource.
Returns
A new LoadBalancingRuleData instance for mocking.
Applies to
Azure SDK for .NET