共用方式為


Get-AzLoadBalancerBackendAddressPool

Get-AzLoadBalancerBackendAddressPool 擷取與負載平衡器相關聯的一或多個後端位址池。

語法

Get-AzLoadBalancerBackendAddressPool
   -ResourceGroupName <String>
   -LoadBalancerName <String>
   [-Name <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzLoadBalancerBackendAddressPool
   [-Name <String>]
   -LoadBalancer <PSLoadBalancer>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzLoadBalancerBackendAddressPool
   -ResourceId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Get-AzLoadBalancerBackendAddressPool 擷取與負載平衡器相關聯的一或多個後端位址池。

範例

範例 1

## Get single backend under loadbalancer
$lb = Get-AzLoadBalancer -ResourceGroupName $resourceGroup -Name $loadBalancerName

## Get all backends under loadbalancer
$lb | Get-AzLoadBalancerBackendAddressPool

範例 2

#Get specific backend from loadbalancer
$lb | Get-AzLoadBalancerBackendAddressPool -Name $backendPool1

範例 3

#Get a backend by resource Id
Get-AzLoadBalancerBackendAddressPool -ResourceId $backendPool1.Id

參數

-DefaultProfile

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

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

-LoadBalancer

{{ Fill LoadBalancer Description }}

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

-LoadBalancerName

負載平衡器的名稱。

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

-Name

後端位址池的名稱。

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

-ResourceGroupName

負載平衡器的資源組名。

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

-ResourceId

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

輸入

PSLoadBalancer

String

輸出

PSBackendAddressPool