Add-AzApplicationGatewayHttpListenerCustomError
Egyéni hibát ad hozzá egy application gateway http-figyelőhöz.
Syntax
Add-AzApplicationGatewayHttpListenerCustomError
-HttpListener <PSApplicationGatewayHttpListener>
-StatusCode <String>
-CustomErrorPageUrl <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Az Add-AzApplicationGatewayCustomError parancsmag egyéni hibát ad hozzá egy application gateway http-figyelőjéhez.
Példák
1. példa: Egyéni hiba hozzáadása a HTTP-figyelő szintjéhez
$customError502Url = "https://mycustomerrorpages.blob.core.windows.net/errorpages/502.htm"
$updatedlistener = Add-AzApplicationGatewayHttpListenerCustomError -HttpListener $listener01 -StatusCode HttpStatus502 -CustomErrorPageUrl $customError502Url
Ez a parancs az 502-ben megadott http-állapotkód egyéni hibáját adja hozzá a http-figyelőhöz $listener 01, é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