Udostępnij za pośrednictwem


ArmNetworkModelFactory.LoadBalancerData Method

Definition

Initializes a new instance of LoadBalancerData.

public static Azure.ResourceManager.Network.LoadBalancerData LoadBalancerData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType? resourceType = default, Azure.Core.AzureLocation? location = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = default, Azure.ResourceManager.Network.Models.LoadBalancerSku sku = default, Azure.ETag? etag = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.FrontendIPConfigurationData> frontendIPConfigurations = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.BackendAddressPoolData> backendAddressPools = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.LoadBalancingRuleData> loadBalancingRules = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.ProbeData> probes = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.InboundNatRuleData> inboundNatRules = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.LoadBalancerInboundNatPool> inboundNatPools = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.OutboundRuleData> outboundRules = default, Guid? resourceGuid = default, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default);
static member LoadBalancerData : Azure.Core.ResourceIdentifier * string * Nullable<Azure.Core.ResourceType> * Nullable<Azure.Core.AzureLocation> * System.Collections.Generic.IDictionary<string, string> * Azure.ResourceManager.Resources.Models.ExtendedLocation * Azure.ResourceManager.Network.Models.LoadBalancerSku * Nullable<Azure.ETag> * seq<Azure.ResourceManager.Network.FrontendIPConfigurationData> * seq<Azure.ResourceManager.Network.BackendAddressPoolData> * seq<Azure.ResourceManager.Network.LoadBalancingRuleData> * seq<Azure.ResourceManager.Network.ProbeData> * seq<Azure.ResourceManager.Network.InboundNatRuleData> * seq<Azure.ResourceManager.Network.Models.LoadBalancerInboundNatPool> * seq<Azure.ResourceManager.Network.OutboundRuleData> * Nullable<Guid> * Nullable<Azure.ResourceManager.Network.Models.NetworkProvisioningState> -> Azure.ResourceManager.Network.LoadBalancerData
Public Shared Function LoadBalancerData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As Nullable(Of ResourceType) = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional sku As LoadBalancerSku = Nothing, Optional etag As Nullable(Of ETag) = Nothing, Optional frontendIPConfigurations As IEnumerable(Of FrontendIPConfigurationData) = Nothing, Optional backendAddressPools As IEnumerable(Of BackendAddressPoolData) = Nothing, Optional loadBalancingRules As IEnumerable(Of LoadBalancingRuleData) = Nothing, Optional probes As IEnumerable(Of ProbeData) = Nothing, Optional inboundNatRules As IEnumerable(Of InboundNatRuleData) = Nothing, Optional inboundNatPools As IEnumerable(Of LoadBalancerInboundNatPool) = Nothing, Optional outboundRules As IEnumerable(Of OutboundRuleData) = Nothing, Optional resourceGuid As Nullable(Of Guid) = Nothing, Optional provisioningState As Nullable(Of NetworkProvisioningState) = Nothing) As LoadBalancerData

Parameters

id
ResourceIdentifier

Resource ID.

name
String

Resource name.

resourceType
Nullable<ResourceType>

Resource type.

location
Nullable<AzureLocation>

Resource location.

tags
IDictionary<String,String>

Resource tags.

extendedLocation
ExtendedLocation

The extended location of the load balancer.

sku
LoadBalancerSku

The load balancer SKU.

etag
Nullable<ETag>

A unique read-only string that changes whenever the resource is updated.

frontendIPConfigurations
IEnumerable<FrontendIPConfigurationData>

Object representing the frontend IPs to be used for the load balancer.

backendAddressPools
IEnumerable<BackendAddressPoolData>

Collection of backend address pools used by a load balancer.

loadBalancingRules
IEnumerable<LoadBalancingRuleData>

Object collection representing the load balancing rules Gets the provisioning.

probes
IEnumerable<ProbeData>

Collection of probe objects used in the load balancer.

inboundNatRules
IEnumerable<InboundNatRuleData>

Collection of inbound NAT Rules used by a load balancer. Defining inbound NAT rules on your load balancer is mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an Inbound NAT pool. They have to reference individual inbound NAT rules.

inboundNatPools
IEnumerable<LoadBalancerInboundNatPool>

Defines an external port range for inbound NAT to a single backend port on NICs associated with a load balancer. Inbound NAT rules are created automatically for each NIC associated with the Load Balancer using an external port from this range. Defining an Inbound NAT pool on your Load Balancer is mutually exclusive with defining inbound NAT rules. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an inbound NAT pool. They have to reference individual inbound NAT rules.

outboundRules
IEnumerable<OutboundRuleData>

The outbound rules.

resourceGuid
Nullable<Guid>

The resource GUID property of the load balancer resource.

provisioningState
Nullable<NetworkProvisioningState>

The provisioning state of the load balancer resource.

Returns

A new LoadBalancerData instance for mocking.

Applies to