Azure KQL Vm Heart beat chart over X days

Goce Dimitroski 41 Reputation points

In Scom this was so easy to do. But in Azure KQL how can I produce a graph showing the Heartbeat of a VM over eg 7 days every 5min ?
The big managers just want to see a graph of the server up-time

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,478 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andrew Blumhardt 9,351 Reputation points Microsoft Employee

    Just replace the COMPUTER

    | where TimeGenerated >= ago(7d)
    | where Computer == "COMPUTER"
    | summarize count() by bin(TimeGenerated, 5m)
    | render timechart

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Goce Dimitroski 41 Reputation points

    Thanks for the reply.
    I had to change the == to contain and it worked