共用方式為


Remove-AzApplicationGatewayRedirectConfiguration

從現有的 應用程式閘道 移除重新導向組態。

語法

Remove-AzApplicationGatewayRedirectConfiguration
      -Name <String>
      -ApplicationGateway <PSApplicationGateway>
      [-DefaultProfile <IAzureContextContainer>]
      [<CommonParameters>]

Description

Remove-AzApplicationGatewayRedirectConfiguration Cmdlet 會從現有的 應用程式閘道 中移除重新導向設定。

範例

範例 1

$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
$AppGw = Remove-AzApplicationGatewayRedirectConfiguration -ApplicationGateway $AppGw -Name "Redirect01"
Set-AzApplicationGateway -ApplicationGateway $AppGw

第一個命令會取得應用程式閘道,並將它儲存在$AppGw變數中。 第二個命令會從儲存在 $AppGw 的應用程式閘道中移除名為 Redirect01 的重新導向組態。 最後一個命令會更新應用程式閘道。

參數

-ApplicationGateway

applicationGateway

類型:PSApplicationGateway
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-DefaultProfile

用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶。

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Name

重新導向組態的名稱

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

輸入

PSApplicationGateway

輸出

PSApplicationGateway