Share via


Get-AzApplicationGatewayHttpListenerCustomError

Egyéni hiba(ok) lekérdezése egy application gateway HTTP-figyelőjével.

Syntax

Get-AzApplicationGatewayHttpListenerCustomError
   [-StatusCode <String>]
   -HttpListener <PSApplicationGatewayHttpListener>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

A Get-AzApplicationGatewayCustomError parancsmag egyéni hibákat kap egy application gateway http-figyelőjéből.

Példák

1. példa: Egyéni hiba lekéri a http-figyelőt

$ce = Get-AzApplicationGatewayHttpListenerCustomError -HttpListener $listener01 -StatusCode HttpStatus502

Ez a parancs lekéri és visszaadja az 502-ben megadott http-állapotkód egyéni hibáját a http-figyelő $listener 01-ből.

2. példa: Lekéri a http-figyelő összes egyéni hibájának listáját

$ces = Get-AzApplicationGatewayHttpListenerCustomError -HttpListener $listener01

Ez a parancs lekéri és visszaadja a http-figyelő $listener 01 egyéni hibáinak listáját.

Paraméterek

-DefaultProfile

Az Azure-ral való kommunikációhoz használt hitelesítő adatok, fiók, bérlő és előfizetés.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-HttpListener

Az Application Gateway http-figyelője

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

-StatusCode

Az Application Gateway-ügyfél hibájának állapotkódja.

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

Bevitelek

PSApplicationGatewayHttpListener

Kimenetek

PSApplicationGatewayCustomError