共用方式為


Remove-AzureVNetGatewayDefaultSite

移除強制通道流量的預設路由。

注意

本檔中參考的 Cmdlet 用於管理使用服務管理 API 的舊版 Azure 資源。 如需管理 Azure Resource Manager 資源的 Cmdlet,請參閱 Az PowerShell 模組

Syntax

Remove-AzureVNetGatewayDefaultSite
      -VNetName <String>
      [-Profile <AzureSMProfile>]
      [<CommonParameters>]

Description

Remove-AzureVNetGatewayDefaultSite Cmdlet 會移除預設路由至內部部署網站,以進行強制通道流量。 此 Cmdlet 會從虛擬網路的 Azure 虛擬私人網路 (VPN) 閘道移除路由。

範例

範例 1:移除預設網站的路由

PS C:\> Remove-AzureVNetGatewayDefaultSite -VnetName "ContosoVNet01"

此命令會從名為 ContosoVNet01 之虛擬網路的 VPN 中移除通往預設月臺的路由。

參數

-Profile

指定此 Cmdlet 從中讀取的 Azure 設定檔。 如果您未指定設定檔,此 Cmdlet 會從本機預設設定檔讀取。

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

-VNetName

指定虛擬網路。 這個 Cmdlet 會從此參數所指定之虛擬網路的 VPN 閘道中移除預設路由。

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