How to Fix Azure Firewall Provisioning State Failed Error

LinkedIn
Twitter
Facebook

Table of Contents

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.Azure S2S

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:

  1. Log into Azure using Powershell and connect the AzAccounts module
    Set-ExecutionPolicy Unrestricted
    Import-Module Az.Accounts
    Connect-AzAccount
    s2s vpn
  2. Get the current status of the S2S VPN
    Get-AzVirtualNetworkGatewayConnection
    s2s vpn
  3. Re-Set (not reset) the Gateway
    $Gateway – Get-AzVirtualNetworkGatewayConnection -Name xxxS2sVPNxxx -ResourceGroupName xxxResourceGroupxxx
    Set-AzVirtualNetworkGatewayConnection -VirtualNetworkGatewayConnection $Gateway
    s2s vpn
  4. Check the status of the S2S VPN again
    s2s vpn
  5. Happy days

For more information check out: 

Get-AzVirtualNetworkGatewayConnection

Set-AzVirtualNetworkGatewayConnection

Sign up to receive the latest news and offers from IT Networks​

About IT Networks

At IT Networks, we provide managed IT services designed to keep your business running smoothly and securely. From handling day-to-day IT operations to implementing robust cyber security solutions, we ensure your technology works seamlessly so you can focus on what matters most—growing your business. Let us streamline your IT infrastructure, enhance your security posture, and help you drive greater success.
Kim Pham - IT Network Security