简体   繁体   中英

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.

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?

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

删除网关

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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