New-AzApplicationGatewayCustomError
Hiermee maakt u een aangepaste fout met http-statuscode en url van aangepaste foutpagina
Syntax
New-AzApplicationGatewayCustomError
-StatusCode <String>
-CustomErrorPageUrl <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Met de cmdlet New-AzApplicationGatewayCustomError wordt een aangepaste fout gemaakt.
Voorbeelden
Voorbeeld 1
$customError403Url = "https://mycustomerrorpages.blob.core.windows.net/errorpages/403-another.htm"
$ce = New-AzApplicationGatewayCustomError -StatusCode HttpStatus403 -CustomErrorPageUrl $customError403Url
Met deze opdracht wordt de aangepaste fout van http-statuscode 403 gemaakt.
Parameters
-CustomErrorPageUrl
Foutpagina-URL van de fout van de klant van de toepassingsgateway.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StatusCode
Statuscode van de application gateway-klantfout.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Invoerwaarden
None
Uitvoerwaarden
PSApplicationGatewayCustomError