Disable VPN gateway in Azure classic VM virtual network

爷,独闯天下 提交于 2019-12-25 07:38:03

问题


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.

The network is in use description is displayed in old portal and it still remains after deallocating the VM. Unchecking then save action gives failure as expected by using PowerShell command and Portal.

How to disable this setting? Do I have to recreate VM?


回答1:


Have you created the VPN gateway on the VNET? If yes, you need to delete the gateway first.

You are able to delete the gateway via portal or powershell.

To get the GatewayId, please run the command Get-AzureVirtualNetworkGateway.

Then we are able to delete the gateway with command Remove-AzureVirtualNetworkGateway -GatewayId your_gateway_id



来源:https://stackoverflow.com/questions/40716166/disable-vpn-gateway-in-azure-classic-vm-virtual-network

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!