This Microsoft Azure article will show you how to monitor Azure VPN Tunnel uptime using Azure monitor.
As a Microsoft partner, we help many organisations build and secure Azure tenants across global regions and between data centres. When setting up a VPN tunnel, the most common task is to enable monitoring in Azure Monitor to alert operation teams when the tunnel is down.
Azure Monitor provides a comparative suite of tools to monitor almost any service and action in Azure and also trigger automated actions in the forms of scripts, functions, runbooks and more.
Monitoring Azure VPN Tunnel Uptime
In our case, we have a VPN tunnel between two Azure regions, and we will set up a monitoring rule that will monitor Ingress traffic (income).
We will use an Azure Monitor signal called Tunnel Ingress Packets to monitor the ingress packets coming into the Virtual Network Gateway tunnel. If the total number of packets is less than or equal to 0, the tunnel is down and needs to be checked.
Create Rule
To set up the monitoring rule, Open your Azure Network Gateway Tunnel.
Click on Alerts from the Monitoring section.
![](https://cloudproin-e5ddd09d0f1b51fcfd2f-endpoint.azureedge.net/blobcloudproinf8788b00c9/wp-content/uploads/2024/07/image-18.png)
In the Condition section, Select the following settings.
- Singal name – Tunnel Ingress Packets
- Threshold – Static
- Aggregation type – Total
- Operator – Less than or equal to
- Unit – Count
- Threshold value – 0
![](https://cloudproin-e5ddd09d0f1b51fcfd2f-endpoint.azureedge.net/blobcloudproinf8788b00c9/wp-content/uploads/2024/07/image-17.png)
Click next and set up your action group users. When an alert is triggered, the action group will send an email, SMS, or Push notification to its members.
Trackbacks/Pingbacks