Azure S2S
Here is a quick guide on how to fix Azure S2S (Site-2-Site) VPNs that are showing as ‘Failed’ when in actual fact they are operational.
The S2S VPN is usually marked failed when its provisioning state is unknown or failed. A change to the VPN was made that didn’t go through completely is the usual cause.
The Fix is easy:
- Log into Azure using Powershell and connect the AzAccounts module
Set-ExecutionPolicy Unrestricted
Import-Module Az.Accounts
Connect-AzAccount - Get the current status of the S2S VPN
Get-AzVirtualNetworkGatewayConnection - Re-Set (not reset) the Gateway
$Gateway – Get-AzVirtualNetworkGatewayConnection -Name xxxS2sVPNxxx -ResourceGroupName xxxResourceGroupxxx
Set-AzVirtualNetworkGatewayConnection -VirtualNetworkGatewayConnection $Gateway - Check the status of the S2S VPN again
- Happy days
For more information check out: