Get-AzApplicationGatewayCustomError
從應用程式閘道取得自訂錯誤 () 。
語法
Default (預設值)
Get-AzApplicationGatewayCustomError
[-StatusCode <String>]
-ApplicationGateway <PSApplicationGateway>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzApplicationGatewayCustomError Cmdlet 會從應用程式閘道取得自訂錯誤。
範例
範例 1:在應用程式閘道中取得自訂錯誤
$ce = Get-AzApplicationGatewayCustomError -ApplicationGateway $appgw -StatusCode HttpStatus502
此命令會從應用程式閘道$appgw取得並傳回 http 狀態碼 502 的自訂錯誤。
範例 2:取得應用程式閘道中所有自訂錯誤的清單
$ces = Get-AzApplicationGatewayCustomError -ApplicationGateway $appgw
此命令會從應用程式閘道$appgw取得並傳回所有自訂錯誤的清單。
參數
-ApplicationGateway
應用程式閘道
參數屬性
| 類型: | PSApplicationGateway |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
(All)
| Position: | Named |
| 必要: | True |
| 來自管線的值: | True |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
參數屬性
| 類型: | IAzureContextContainer |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
| 別名: | AzContext, AzureRmContext, AzureCredential |
參數集
(All)
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-StatusCode
應用程式閘道客戶錯誤的狀態代碼。
參數屬性
| 類型: | String |
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
(All)
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
CommonParameters
此 Cmdlet 支援常見參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters。