Remove-AzApplicationGatewayHttpListenerCustomError
從應用程式閘道的 HTTP 接聽程式中移除自訂錯誤。
Syntax
Remove-AzApplicationGatewayHttpListenerCustomError
-StatusCode <String>
-HttpListener <PSApplicationGatewayHttpListener>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
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
相關連結
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應