Get-AzApplicationGatewayBackendAddressPool
取得應用程式閘道的後端位址池。
Syntax
Get-AzApplicationGatewayBackendAddressPool
[-Name <String>]
-ApplicationGateway <PSApplicationGateway>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzApplicationGatewayBackendAddressPool Cmdlet 會從應用程式閘道取得一或多個後端位址池組態。
範例
範例 1:取得指定的後端伺服器集區
$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
$BackendPool = Get-AzApplicationGatewayBackendAddressPool -Name "Pool01" -ApplicationGateway $AppGw
第一個命令會在名為 ResourceGroup01 的資源群組中取得名為 ApplicationGateway01 的應用程式閘道,並將它儲存在$AppGw變數中。 第二個命令會取得與名為Pool01$AppGw相關聯的後端位址池,並將它儲存在$BackendPool變數中。
範例 2:取得後端伺服器集區清單
$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
$BackendPools = Get-AzApplicationGatewayBackendAddressPool -ApplicationGateway $AppGw
第一個命令會在名為 ResourceGroup01 的資源群組中取得名為 ApplicationGateway01 的應用程式閘道,並將它儲存在$AppGw變數中。 第二個命令會取得與$AppGw相關聯的後端位址池清單,並將清單儲存在$BackendPools變數中。
參數
-ApplicationGateway
Get-AzApplicationGatewayBackendAddressPool Cmdlet 會取得應用程式閘道的後端位址池。
Type: | PSApplicationGateway |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DefaultProfile
用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶。
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
指定這個 Cmdlet 取得的後端位址池名稱。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
輸入
輸出
PSApplicationGatewayBackendAddressPool
相關連結
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應