简体   繁体   English

在Azure经典VM虚拟网络中禁用VPN网关

[英]Disable VPN gateway in Azure classic VM virtual network

While trying Azure VM migration from ASM to ARM, I realized that "Configure point-to-site connectivity" is checked (so we can say VPN gateway is configured) to the network settings even though I does not have any connection to the VPN gateway. 尝试将Azure VM从ASM 迁移到ARM时,我意识到即使我没有与VPN网关的任何连接,也都选中了“配置点对站点连接”(可以说是VPN网关已配置)到网络设置。

The network is in use description is displayed in old portal and it still remains after deallocating the VM. The network is in use说明显示在旧门户中,并且在取消分配虚拟机后仍然保留。 Unchecking then save action gives failure as expected by using PowerShell command and Portal. 如果取消选中“保存”操作,则使用PowerShell命令和Portal会导致失败。

How to disable this setting? 如何禁用此设置? Do I have to recreate VM? 我必须重新创建VM吗?

Have you created the VPN gateway on the VNET? 您是否在VNET上创建了VPN网关? If yes, you need to delete the gateway first. 如果是,则需要先删除网关。

You are able to delete the gateway via portal or powershell. 您可以通过门户网站或Powershell删除网关。

To get the GatewayId, please run the command Get-AzureVirtualNetworkGateway . 要获取GatewayId,请运行命令Get-AzureVirtualNetworkGateway

Then we are able to delete the gateway with command Remove-AzureVirtualNetworkGateway -GatewayId your_gateway_id 然后,我们可以使用命令Remove-AzureVirtualNetworkGateway -GatewayId your_gateway_id删除网关

删除网关

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM