Remove-AzApplicationGatewayUrlPathMapConfig

拿掉後端伺服器集區的 URL 路徑對應。

Syntax

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

Description

Remove-AzApplicationGatewayUrlPathMapConfig Cmdlet 會移除 URL 路徑對應至後端伺服器集區。

範例

範例 1:從應用程式閘道移除 URL 路徑對應

$appgw = Get-AzApplicationGateway -ResourceGroupName "rg" -Name "appGwName"
$appgw = Remove-AzApplicationGatewayUrlPathMapConfig -ApplicationGateway $appgw -Name "map01"
$appgw = Set-AzApplicationGateway -ApplicationGateway $appgw

第一個命令會取得名為 appGwName 的應用程式閘道,並將結果儲存在 $appgw 變數中。 第二個命令會從應用程式閘道移除名為 map01 的 URL 路徑對應。 第三個命令會更新應用程式閘道。

參數

-ApplicationGateway

指定此 Cmdlet 移除 URL 路徑對應組態的應用程式閘道。

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

-DefaultProfile

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

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

-Name

指定此 Cmdlet 從後端伺服器移除的 URL 路徑對應名稱。

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

輸入

PSApplicationGateway

輸出

PSApplicationGateway