Monitor uptime/downtime of individual S2S (IPsec) tunnel on a Virtual network gateway

StephenNijsten-8069 120 Reputation points
2023-05-24T11:56:48.1866667+00:00

Hi all,

I have a Virtual network gateway with two S2S (IPsec) connections. I'm trying to monitor the status of these connections/tunnels individually on availability but I can't figure out how. My goal is to monitor the status of these connections/tunnels if they're connected (up) or not connected (down).

I've tried to find a metric I could query to see if the connection/tunnel is up/down but without luck... https://learn.microsoft.com/en-us/azure/vpn-gateway/monitor-vpn-gateway-reference

Is there a way to monitor the connections individually for uptime/downtime in Azure monitoring or should I search for another solution?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,670 questions
Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,803 questions
0 comments No comments
{count} votes

Accepted answer
  1. Luca Lionetti 3,231 Reputation points
    2023-05-24T12:09:15.9966667+00:00

    Hi @Anonymous

    welcome to Q&A Forum

    Azure Automation enables you to implement and run a task in a programmatic fashion through runbooks. Using Azure Automation creates a perfect recipe for performing continuous and proactive network monitoring and alerting.

    Check this link on how to create a runbook with a script to check for the connection status of the VPN tunnel

    https://learn.microsoft.com/en-us/azure/network-watcher/network-watcher-monitor-with-azure-automation

    Hope this helps

    Cheers

    Luca


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.