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
Hope this helps
Cheers
Luca