你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

LoadBalancer 构造函数

定义

重载

LoadBalancer()

初始化 LoadBalancer 类的新实例。

LoadBalancer(String, String, String, String, IDictionary<String, String>, ExtendedLocation, LoadBalancerSku, IList<FrontendIPConfiguration>, IList<BackendAddressPool>, IList<LoadBalancingRule>, IList<Probe>, IList<InboundNatRule>, IList<InboundNatPool>, IList<OutboundRule>, String, String, String)

初始化 LoadBalancer 类的新实例。

LoadBalancer()

初始化 LoadBalancer 类的新实例。

public LoadBalancer();
Public Sub New ()

适用于

LoadBalancer(String, String, String, String, IDictionary<String, String>, ExtendedLocation, LoadBalancerSku, IList<FrontendIPConfiguration>, IList<BackendAddressPool>, IList<LoadBalancingRule>, IList<Probe>, IList<InboundNatRule>, IList<InboundNatPool>, IList<OutboundRule>, String, String, String)

初始化 LoadBalancer 类的新实例。

public LoadBalancer(string id = default, string name = default, string type = default, string location = default, System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.Network.Models.ExtendedLocation extendedLocation = default, Microsoft.Azure.Management.Network.Models.LoadBalancerSku sku = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.FrontendIPConfiguration> frontendIPConfigurations = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.BackendAddressPool> backendAddressPools = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.LoadBalancingRule> loadBalancingRules = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.Probe> probes = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.InboundNatRule> inboundNatRules = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.InboundNatPool> inboundNatPools = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.OutboundRule> outboundRules = default, string resourceGuid = default, string provisioningState = default, string etag = default);
new Microsoft.Azure.Management.Network.Models.LoadBalancer : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Network.Models.ExtendedLocation * Microsoft.Azure.Management.Network.Models.LoadBalancerSku * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.FrontendIPConfiguration> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.BackendAddressPool> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.LoadBalancingRule> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.Probe> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.InboundNatRule> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.InboundNatPool> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.OutboundRule> * string * string * string -> Microsoft.Azure.Management.Network.Models.LoadBalancer
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional location As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional sku As LoadBalancerSku = Nothing, Optional frontendIPConfigurations As IList(Of FrontendIPConfiguration) = Nothing, Optional backendAddressPools As IList(Of BackendAddressPool) = Nothing, Optional loadBalancingRules As IList(Of LoadBalancingRule) = Nothing, Optional probes As IList(Of Probe) = Nothing, Optional inboundNatRules As IList(Of InboundNatRule) = Nothing, Optional inboundNatPools As IList(Of InboundNatPool) = Nothing, Optional outboundRules As IList(Of OutboundRule) = Nothing, Optional resourceGuid As String = Nothing, Optional provisioningState As String = Nothing, Optional etag As String = Nothing)

参数

id
String

资源 ID。

name
String

资源名称。

type
String

资源类型。

location
String

资源位置。

tags
IDictionary<String,String>

资源标记。

extendedLocation
ExtendedLocation

负载均衡器的扩展位置。

sku
LoadBalancerSku

负载均衡器 SKU。

frontendIPConfigurations
IList<FrontendIPConfiguration>

表示要用于负载均衡器的前端 IP 的对象。

backendAddressPools
IList<BackendAddressPool>

负载均衡器使用的后端地址池的集合。

loadBalancingRules
IList<LoadBalancingRule>

表示负载均衡规则的对象集合 获取预配。

probes
IList<Probe>

负载均衡器中使用的探测对象的集合。

inboundNatRules
IList<InboundNatRule>

负载均衡器使用的入站 NAT 规则的集合。 在负载均衡器上定义入站 NAT 规则与定义入站 NAT 池是互斥的。 从虚拟机规模集引用入站 NAT 池。 与单个虚拟机关联的 NIC 不能引用入站 NAT 池。 它们必须引用单个入站 NAT 规则。

inboundNatPools
IList<InboundNatPool>

为与负载均衡器关联的 NIC 上的单个后端端口的入站 NAT 定义外部端口范围。 使用此范围内的外部端口自动为与负载均衡器关联的每个 NIC 创建入站 NAT 规则。 在负载均衡器上定义入站 NAT 池与定义入站 NAT 规则是互斥的。 从虚拟机规模集引用入站 NAT 池。 与单个虚拟机关联的 NIC 不能引用入站 NAT 池。 它们必须引用单个入站 NAT 规则。

outboundRules
IList<OutboundRule>

出站规则。

resourceGuid
String

负载均衡器资源的资源 GUID 属性。

provisioningState
String

负载均衡器资源的预配状态。 可能的值包括:“Succeeded”、“Updating”、“Deleting”、“Failed”

etag
String

一个唯一的只读字符串,每当资源更新时都会更改。

适用于