Azure VM ping surveillance

Bombbe 1,611 Reputation points
2022-05-24T07:25:40.803+00:00

We have small problem now and then with our windows vms. Now and then our vms goes pretty much 'offline' even though they are still running if looked from Portal. During the issue you can not e.g rdp to them, agents stops working etc and you can only solve it by booting the vm. My problem is how to catch these vms fast enough.

I would want to create some kinda ping monitor to our vms but as far as I know Azure Monitor do not yet support any kinda ping monitor / alerts as build in (or maybe using runbooks / Functions) or do I need to look 3rd party software for this?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,803 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,130 questions
{count} votes

Accepted answer
  1. tbgangav-MSFT 10,381 Reputation points
    2022-05-27T13:09:44.963+00:00

    Hi @Bombbe ,

    If depending on Heartbeat kusto table is not helpful in your use case then the next option would be to

    1. depend on windows event id i.e., check which event id is being generated just before the VMs go offline and enable collection of such events and then configure alert rule (or)
    2. depend on custom configuration i.e., create a runbook with Test-Connection cmdlet, schedule it, forward job logs to Azure Monitor and create alert rule for ping failures. For example, refer this blog.

    On the other hand, I would recommend to share this use case here as feedback (i.e., feature request to have a built-in metric alert which pings the VM directly without depending on Heartbeat kusto table). In general, Azure product or feature team would check feasibility of a feature request, prioritize against existing feature backlog, add in roadmap as appropriate and would announce and/or update the related Azure document once a feature request is addressed.

    0 comments No comments

0 additional answers

Sort by: Most helpful