次の方法で共有


Get-AzApplicationGatewayCustomError

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

構文

Default (既定)

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

パラメーターのプロパティ

型:PSApplicationGateway
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:True
パイプラインからの値:True
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-DefaultProfile

Azure との通信のために使用される資格情報、アカウント、テナント、サブスクリプションです。

パラメーターのプロパティ

型:IAzureContextContainer
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-StatusCode

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

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

CommonParameters

このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、about_CommonParametersを参照してください。

入力

PSApplicationGateway

出力

PSApplicationGatewayCustomError