共用方式為


New-AzLoadBalancerBackendAddressPoolConfig

建立負載平衡器的後端位址池組態。

語法

New-AzLoadBalancerBackendAddressPoolConfig
   -Name <String>
   [-TunnelInterface <PSTunnelInterface[]>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

New-AzLoadBalancerBackendAddressPoolConfig Cmdlet 會建立 Azure 負載平衡器的後端位址池組態。

範例

範例 1:建立負載平衡器的後端位址池組態

New-AzLoadBalancerBackendAddressPoolConfig -Name "BackendAddressPool02"

此命令會為負載平衡器建立名為 BackendAddressPool02 的後端位址池組態。

範例 2:使用負載平衡器的通道介面建立後端位址池組態

## create with Gateway LoadBalancer TunnelInterface configuration
$tunnelInterface1 = New-AzLoadBalancerBackendAddressPoolTunnelInterfaceConfig -Protocol 'Vxlan' -Type 'Internal' -Port 2000 -Identifier 800
$tunnelInterface2 = New-AzLoadBalancerBackendAddressPoolTunnelInterfaceConfig -Protocol 'Vxlan' -Type 'External' -Port 2001 -Identifier 801
New-AzLoadBalancerBackendAddressPool -ResourceGroupName $resourceGroup -LoadBalancerName $loadBalancerName -Name $backendPool3 -TunnelInterface $tunnelInterface1, $tunnelInterface2

參數

-Confirm

在執行 Cmdlet 之前,提示您進行確認。

類型:SwitchParameter
別名:cf
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-DefaultProfile

用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶。

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Name

指定要建立的位址池組態名稱。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-TunnelInterface

閘道 LoadBalancer 提供者的組態。

類型:PSTunnelInterface[]
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-WhatIf

顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。

類型:SwitchParameter
別名:wi
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

None

輸出

PSBackendAddressPool