Partager via


LoadBalancingRuleProperties Class

Definition

Properties of the load balancer.

public class LoadBalancingRuleProperties : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Network.Models.LoadBalancingRuleProperties>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Network.Models.LoadBalancingRuleProperties>
type LoadBalancingRuleProperties = class
    interface IJsonModel<LoadBalancingRuleProperties>
    interface IPersistableModel<LoadBalancingRuleProperties>
Public Class LoadBalancingRuleProperties
Implements IJsonModel(Of LoadBalancingRuleProperties), IPersistableModel(Of LoadBalancingRuleProperties)
Inheritance
LoadBalancingRuleProperties
Implements

Constructors

LoadBalancingRuleProperties(LoadBalancingTransportProtocol, Int32)

Initializes a new instance of LoadBalancingRuleProperties.

Properties

AdditionalProperties

Additional Properties

To assign an object to the value of this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"): Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""): Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }): Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"): Creates a payload of { "key": "value" }.

BackendAddressPoolId

Gets or sets Id.

BackendAddressPools

An array of references to pool of DIPs.

BackendPort

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

DisableOutboundSnat

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

EnableFloatingIP

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

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.

FrontendIPConfigurationId

Gets or sets Id.

FrontendPort

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

IdleTimeoutInMinutes

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.

LoadDistribution

The load distribution policy for this rule.

ProbeId

Gets or sets Id.

Protocol

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

ProvisioningState

The provisioning state of the load balancing rule resource.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<LoadBalancingRuleProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<LoadBalancingRuleProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<LoadBalancingRuleProperties>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<LoadBalancingRuleProperties>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<LoadBalancingRuleProperties>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to