Skip to content

Commit df8f035

Browse files
authored
Merge pull request #283842 from cherylmc/includes-fix
VPN Gateway remove classic
2 parents d0d55c2 + 172a3c3 commit df8f035

File tree

2 files changed

+29
-31
lines changed

2 files changed

+29
-31
lines changed

articles/vpn-gateway/reset-gateway.md

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to reset a gateway or a gateway connection to reestablish
55
author: cherylmc
66
ms.service: azure-vpn-gateway
77
ms.topic: how-to
8-
ms.date: 04/17/2024
8+
ms.date: 08/07/2024
99
ms.author: cherylmc
1010
---
1111
# Reset a VPN gateway or a connection
@@ -61,7 +61,9 @@ Note: If the VPN gateway is configured as active-active, you can reset the gatew
6161

6262
### <a name="ps"></a>PowerShell
6363

64-
The cmdlet for resetting a gateway is **Reset-AzVirtualNetworkGateway**. The following example resets a virtual network gateway named VNet1GW in the TestRG1 resource group:
64+
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.
65+
66+
The following example resets a virtual network gateway named VNet1GW in the TestRG1 resource group:
6567

6668
```azurepowershell-interactive
6769
$gw = Get-AzVirtualNetworkGateway -Name VNet1GW -ResourceGroupName TestRG1
@@ -70,43 +72,18 @@ Reset-AzVirtualNetworkGateway -VirtualNetworkGateway $gw
7072

7173
You can view the reset history of the gateway from [Azure portal](https://portal.azure.com) by navigating to **'GatewayName' -> Resource Health**.
7274

73-
Note: If the gateway is set up as active-active, use `-GatewayVip <string>` to reset both the instances one by one.
74-
7575
### <a name="cli"></a>Azure CLI
7676

77-
To reset the gateway, use the [az network vnet-gateway reset](/cli/azure/network/vnet-gateway) command. The following example resets a virtual network gateway named VNet5GW in the TestRG5 resource group:
77+
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.
78+
79+
The following example resets a virtual network gateway named VNet5GW in the TestRG5 resource group:
7880

7981
```azurecli-interactive
8082
az network vnet-gateway reset -n VNet5GW -g TestRG5
8183
```
8284

8385
You can view the reset history of the gateway from [Azure portal](https://portal.azure.com) by navigating to **'GatewayName' -> Resource Health**.
8486

85-
Note: If the gateway is set up as active-active, use `--gateway-vip <string>` to reset both the instances one by one.
86-
87-
### <a name="resetclassic"></a>Reset a classic gateway
88-
89-
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).
90-
91-
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`.
92-
93-
The following example resets the gateway for a virtual network named "Group TestRG1 TestVNet1" (which shows as simply "TestVNet1" in the portal):
94-
95-
```powershell
96-
Reset-AzureVNetGateway –VnetName 'Group TestRG1 TestVNet1'
97-
```
98-
99-
Result:
100-
101-
```powershell
102-
Error :
103-
HttpStatusCode : OK
104-
Id : f1600632-c819-4b2f-ac0e-f4126bec1ff8
105-
Status : Successful
106-
RequestId : 9ca273de2c4d01e986480ce1ffa4d6d9
107-
StatusCode : OK
108-
```
109-
11087
## Next steps
11188

11289
For more information about VPN Gateway, see the [VPN Gateway FAQ](vpn-gateway-vpn-faq.md).

articles/vpn-gateway/vpn-gateway-howto-site-to-site-classic-portal.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,28 @@ If you're having trouble connecting, see the **Troubleshoot** section of the tab
126126

127127
## <a name="reset"></a>How to reset a VPN gateway
128128

129-
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. For steps, see [Reset a VPN gateway](./reset-gateway.md#resetclassic).
129+
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.
130+
131+
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).
132+
133+
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`.
134+
135+
The following example resets the gateway for a virtual network named "Group TestRG1 TestVNet1" (which shows as simply "TestVNet1" in the portal):
136+
137+
```powershell
138+
Reset-AzureVNetGateway –VnetName 'Group TestRG1 TestVNet1'
139+
```
140+
141+
Result:
142+
143+
```powershell
144+
Error :
145+
HttpStatusCode : OK
146+
Id : f1600632-c819-4b2f-ac0e-f4126bec1ff8
147+
Status : Successful
148+
RequestId : 9ca273de2c4d01e986480ce1ffa4d6d9
149+
StatusCode : OK
150+
```
130151

131152
## <a name="changesku"></a>How to resize a gateway SKU
132153

0 commit comments

Comments
 (0)