You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: 'Reset a VPN gateway or connection to reestablish IPsec tunnels'
2
+
title: 'Reset a VPN Gateway or Gateway Connection to Reestablish IPsec Tunnels'
3
3
titleSuffix: Azure VPN Gateway
4
4
description: Learn how to reset a gateway or a gateway connection to reestablish IPsec tunnels.
5
5
author: cherylmc
6
6
ms.service: azure-vpn-gateway
7
7
ms.topic: how-to
8
-
ms.date: 08/07/2024
8
+
ms.date: 06/26/2025
9
9
ms.author: cherylmc
10
10
---
11
11
# Reset a VPN gateway or a connection
12
12
13
-
Resetting an Azure VPN gateway or gateway connection is helpful if you lose cross-premises VPN connectivity on one or more site-to-site VPN tunnels. In this situation, your on-premises VPN devices are all working correctly, but aren't able to establish IPsec tunnels with the Azure VPN gateways. This article helps you reset a VPN gateway or gateway connection.
13
+
Resetting an Azure VPN gateway or gateway connection is helpful if you lose cross-premises VPN connectivity on one or more site-to-site VPN tunnels. In this situation, your on-premises VPN devices are all working correctly, but aren't able to establish IPsec tunnels with the Azure VPN gateways. This article helps you reset a VPN gateway or a gateway connection.
14
14
15
-
## What happens during a reset
15
+
## Reset a VPN gateway
16
16
17
-
### Gateway reset
17
+
A VPN gateway is composed of two VM instances running in an active-active or active-standby configuration. When you reset the gateway, it reboots the gateway, and then reapplies the cross-premises configurations to it. The gateway keeps the public IP address it already has. This means you don't need to update the VPN router configuration with a new public IP address for Azure VPN gateway.
18
18
19
-
A VPN gateway is composed of two virtual machine (VM) instances running in an active-standby or active-active configuration. When you reset the gateway, it reboots the gateway, and then reapplies the cross-premises configurations to it. The gateway keeps the public IP address it already has. This means you won’t need to update the VPN router configuration with a new public IP address for Azure VPN gateway.
19
+
### Gateway reset behavior
20
20
21
-
When you issue the command to reset the gateway in active-standby setup, the current active instance of the Azure VPN gateway is rebooted immediately. A brief connectivity disruption can be expected during the failover from the active instance (being rebooted), to the standby instance.
21
+
Gateway reset behavior depends on the configuration of the VPN gateway.
22
22
23
-
When you issue the command to reset the gateway in active-active setup, one of the active instances (for example, primary active instance) of the Azure VPN gateway is rebooted immediately. A brief connectivity disruption can be expected as the gateway instance gets rebooted.
23
+
***Active-active mode gateway**: When you issue the command to reset the gateway in active-active setup, one of the active instances (the primary active instance) of the Azure VPN gateway is rebooted immediately. A brief connectivity disruption can be expected as the gateway instance gets rebooted.
24
24
25
-
If the connection hasn't restored after the first reboot, the next steps might vary depending on if the VPN gateway is configured as active-standby or active-active:
25
+
***Active-standby mode gateway**: When you issue the command to reset the gateway in active-standby setup, the current active instance of the Azure VPN gateway is rebooted immediately. A brief connectivity disruption can be expected during the failover from the active instance (being rebooted), to the standby instance.
26
26
27
-
* If the VPN gateway is configured as active-standby, issue the same command again to reboot the second VM instance (the new active gateway).
28
-
* If the VPN gateway is configured as active-active, the same instance gets rebooted when the reset gateway operation is issued again. You can use PowerShell or CLI to reset one or both of the instances using VIPs.
27
+
If the connection isn't restored after the first reboot, the next steps might vary depending on whether the VPN gateway is configured as active-active or active-standby:
29
28
30
-
### Connection reset
29
+
* If the VPN gateway is configured as **active-active**, the same instance gets rebooted when the reset gateway operation is issued again. You can use PowerShell or CLI to reset one or both of the instances using VIPs.
30
+
* If the VPN gateway is configured as **active-standby**, issue the same command again to reboot the second VM instance (the new active gateway).
31
31
32
-
When you select to reset a connection, the gateway doesn't reboot. Only the selected connection is reset and restored.
32
+
### Key items to verify before resetting a gateway
33
33
34
-
## Reset a connection
35
-
36
-
You can reset a connection easily using the Azure portal.
37
-
38
-
1. Go to the **Connection** that you want to reset. You can find the connection resource either by locating it in **All resources**, or by going to the **'Gateway Name' -> Connections -> 'Connection Name'**
39
-
1. On the **Connection** page, in the left pane, scroll down to the **Help** section and select **Reset**.
40
-
1. On the **Reset** page, select **Reset** to reset the connection.
41
-
42
-
## Reset a gateway
43
-
44
-
Before you reset your gateway, verify the following key items for each IPsec site-to-site (S2S) VPN tunnel. Any mismatch in the items results in the disconnect of S2S VPN tunnels. Verifying and correcting the configurations for your on-premises and Azure VPN gateways saves you from unnecessary reboots and disruptions for the other working connections on the gateways.
45
-
46
-
Verify the following items before resetting your gateway:
34
+
Before you reset your gateway, verify the following key items listed for each IPsec site-to-site (S2S) VPN tunnel. Any mismatch in the items will result in the disconnect of S2S VPN tunnels. Verifying and correcting the configurations for your on-premises and Azure VPN gateways saves you from unnecessary reboots and disruptions for the other working connections on the gateways.
47
35
48
36
* The Internet IP addresses (VIPs) for both the Azure VPN gateway and the on-premises VPN gateway are configured correctly in both the Azure and the on-premises VPN policies.
49
37
* The preshared key must be the same on both Azure and on-premises VPN gateways.
50
38
* If you apply specific IPsec/IKE configuration, such as encryption, hashing algorithms, and PFS (Perfect Forward Secrecy), ensure both the Azure and on-premises VPN gateways have the same configurations.
51
39
52
-
### <aname="portal"></a>Azure portal
40
+
### Reset a gateway
53
41
54
-
You can reset a Resource Manager VPN gateway using the Azure portal.
42
+
The following sections describe how to reset a VPN gateway using the Azure portal, PowerShell, or Azure CLI. If the VPN gateway is configured as active-active and you want to reset each gateway instance separately, you can use PowerShell or CLI.
The cmdlet for resetting a gateway is [Reset-AzVirtualNetworkGateway](/powershell/module/az.network/reset-azvirtualnetworkgateway). If the gateway is set up as **active-active**, use `-GatewayVip <string>` to reset both the instances one by one.
52
+
The cmdlet for resetting a gateway is [Reset-AzVirtualNetworkGateway](/powershell/module/az.network/reset-azvirtualnetworkgateway). If the gateway is set up as active-active, you can use `-GatewayVip <string>` to reset each instance, one by one.
63
53
64
54
The following example resets a virtual network gateway named VNet1GW in the TestRG1 resource group:
You can view the reset history of the gateway from [Azure portal](https://portal.azure.com) by navigating to **'GatewayName' -> Resource Health**.
72
62
73
-
### <aname="cli"></a>Azure CLI
63
+
####<aname="cli"></a>Azure CLI
74
64
75
-
To reset the gateway, use the [az network vnet-gateway reset](/cli/azure/network/vnet-gateway) command. If the gateway is set up as **active-active**, use `--gateway-vip <string>` to reset both the instances one by one.
65
+
To reset the gateway, use the [az network vnet-gateway reset](/cli/azure/network/vnet-gateway) command. If the gateway is set up as active-active, use `--gateway-vip <string>` to reset each instance, one by one.
76
66
77
67
The following example resets a virtual network gateway named VNet5GW in the TestRG5 resource group:
You can view the reset history of the gateway from [Azure portal](https://portal.azure.com) by navigating to **'GatewayName' -> Resource Health**.
84
74
75
+
### <aname="resetclassic"></a>Reset a classic gateway
76
+
77
+
The cmdlet for resetting a classic gateway is **Reset-AzureVNetGateway**. The Azure PowerShell cmdlets for Service Management must be installed locally on your desktop. You can't use Azure Cloud Shell. Before performing a reset, make sure you have the latest version of the [Service Management (SM) PowerShell cmdlets](/powershell/azure/servicemanagement/install-azure-ps#azure-service-management-cmdlets).
78
+
79
+
When using this command, make sure you're using the full name of the virtual network. Classic VNets that were created using the portal have a long name that is required for PowerShell. You can view the long name by using `Get-AzureVNetConfig -ExportToFile C:\Myfoldername\NetworkConfig.xml`.
80
+
81
+
The following example resets the gateway for a virtual network named "Group TestRG1 TestVNet1" (which shows as simply "TestVNet1" in the portal):
When you reset a VPN gateway connection, the gateway doesn't reboot. Only the selected connection is reset and restored. You can reset a connection easily using the Azure portal.
101
+
102
+
1. Go to the **Connection** that you want to reset. You can find the connection resource either by locating it in **All resources**, or by going to the **'Gateway Name' -> Connections**.
103
+
1. From the list of connections for your gateway, click the connection that you want to reset to open the **Connection** page for that connection.
104
+
1. On the **Connection** page, in the left pane, scroll down to the **Support + Troubleshooting** section and select **Reset**.
105
+
1. On the **Reset** page, click **Reset** to reset the connection.
106
+
85
107
## Next steps
86
108
87
-
For more information about VPN Gateway, see the [VPN Gateway FAQ](vpn-gateway-vpn-faq.md).
109
+
For more information about VPN Gateway, see the [VPN Gateway FAQ](vpn-gateway-vpn-faq.md).
Copy file name to clipboardExpand all lines: articles/vpn-gateway/tutorial-site-to-site-portal.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -149,7 +149,7 @@ You can configure more settings for your connection, if necessary. Otherwise, sk
149
149
150
150
### <aname="reset"></a>Reset a gateway
151
151
152
-
Resetting an Azure VPN gateway is helpful if you lose cross-premises VPN connectivity on one or more site-to-site VPN tunnels. In this situation, your on-premises VPN devices are all working correctly but aren't able to establish IPsec tunnels with the Azure VPN gateways. If you need to reset an active-active gateway, you can reset both instances using the portal. You can also use PowerShell or CLI to reset each gateway instance separately using instance VIPs. For more information, see [Reset a connection or a gateway](reset-gateway.md#reset-a-gateway).
152
+
Resetting an Azure VPN gateway is helpful if you lose cross-premises VPN connectivity on one or more site-to-site VPN tunnels. In this situation, your on-premises VPN devices are all working correctly but aren't able to establish IPsec tunnels with the Azure VPN gateways. If you need to reset an active-active gateway, you can reset both instances using the portal. You can also use PowerShell or CLI to reset each gateway instance separately using instance VIPs. For more information, see [Reset a VPN gateway or a connection](reset-gateway.md).
153
153
154
154
[!INCLUDE [reset a gateway](../../includes/vpn-gateway-reset-gw-portal-include.md)]
155
155
@@ -173,7 +173,7 @@ You can specify a different shared key for your connection.
173
173
174
174
### <aname="resize"></a>Upgrade a gateway SKU
175
175
176
-
You can upgrade the SKU of your VPN gateway to a different SKU. There are rules regarding which SKUs are available for upgrade. For more information, see [Upgrade a gatewway SKU](gateway-sku-upgrade.md).
176
+
You can upgrade the SKU of your VPN gateway to a different SKU. There are rules regarding which SKUs are available for upgrade. For more information, see [Upgrade a gateway SKU](gateway-sku-upgrade.md).
0 commit comments