Get-AzApplicationGatewayCustomError

アプリケーション ゲートウェイからカスタム エラーを取得します。

構文

Get-AzApplicationGatewayCustomError
   [-StatusCode <String>]
   -ApplicationGateway <PSApplicationGateway>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

説明

Get-AzApplicationGatewayCustomError コマンドレットは、アプリケーション ゲートウェイからカスタム エラーを取得します。

例 1: アプリケーション ゲートウェイでカスタム エラーを取得する

$ce = Get-AzApplicationGatewayCustomError -ApplicationGateway $appgw -StatusCode HttpStatus502

このコマンドは、アプリケーション ゲートウェイ $appgwから http 状態コード 502 のカスタム エラーを取得して返します。

例 2: アプリケーション ゲートウェイ内のすべてのカスタム エラーの一覧を取得します

$ces = Get-AzApplicationGatewayCustomError -ApplicationGateway $appgw

このコマンドは、アプリケーション ゲートウェイ $appgwからすべてのカスタム エラーの一覧を取得して返します。

パラメーター

-ApplicationGateway

The Application Gateway

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

-StatusCode

Application Gateway のお客様エラーの状態コード。

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

入力

PSApplicationGateway

出力

PSApplicationGatewayCustomError