Share via


Set-AzApplicationGatewayHttpListenerCustomError

egyéni hiba Frissítések egy application gateway HTTP-figyelőjében.

Syntax

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

Description

A Set-AzApplicationGatewayHttpListenerCustomError parancsmag egy egyéni hibát frissít az application gateway http-figyelőjében.

Példák

1. példa: egyéni hiba Frissítések egy HTTP-figyelőtől

$customError502Url = "https://mycustomerrorpages.blob.core.windows.net/errorpages/502.htm"
$updatedlistener = Set-AzApplicationGatewayHttpListenerCustomError -HttpListener $listener01 -StatusCode HttpStatus502 -CustomErrorPageUrl $customError502Url

Ez a parancs frissíti az 502-s http-állapotkód egyéni hibáját a http-figyelő $listener 01-ben, és visszaadja a frissített figyelőt.

Paraméterek

-CustomErrorPageUrl

Az Application Gateway ügyfélhibájának hibaoldali URL-címe.

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

-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:True
Accept pipeline input:False
Accept wildcard characters:False

Bevitelek

PSApplicationGatewayHttpListener

Kimenetek

PSApplicationGatewayCustomError