Forum Discussion
Kiril Iliev
Jan 29, 2025Copper Contributor
Azure CLI - reset VPN Connection
I am looking for a way to reset a VPN connection with Azure CLI. There was no information about stopping and starting the service. Is there a way to do that from PowerShell CMD? az network vpn-conn...
balasubramanim
Feb 03, 2025Iron Contributor
You can reset an Azure VPN connection using Azure CLI with the following command:
Reset VPN Connection
az network vpn-connection reset --resource-group <ResourceGroup> --name <VPNConnectionName>
Restart VPN Gateway (if needed)
If the issue persists, restart the VPN Gateway:
az network vnet-gateway reset --resource-group <ResourceGroup> --name <VPNGatewayName>
PowerShell Alternative
If using PowerShell, run:
Reset-AzVirtualNetworkGateway -ResourceGroupName "<ResourceGroup>" -Name "<VPNGatewayName>"
These commands reset the connection without deleting it.