你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Remove-AzApplicationGatewayHttpListenerCustomError

从应用程序网关的 http 侦听器中删除自定义错误。

语法

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

说明

Remove-AzApplicationGatewayHttpListenerCustomError cmdlet 从应用程序网关的 http 侦听器中删除自定义错误。

示例

示例 1:从 http 侦听器中删除自定义错误

Remove-AzApplicationGatewayHttpListenerCustomError -HttpListener $listener01 -StatusCode HttpStatus502

此命令从 http 侦听器$listener 01 中删除 http 状态代码 502 的自定义错误,并返回更新的侦听器。

参数

-DefaultProfile

用于与 Azure 通信的凭据、帐户、租户和订阅。

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

-HttpListener

应用程序网关 Http 侦听器

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

-StatusCode

应用程序网关客户错误的状态代码。

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

输入

PSApplicationGatewayHttpListener

输出

PSApplicationGatewayCustomError