Availability and uptime report for Azure VMs

Ram Kumar Cheekoti 141 Reputation points

Hi Team,

I require help in extracting availability and uptime reports for Azure VMs every 2 minutes using graphs and charts. Can you assist me in finding a solution for this?

The query below was run, but it only gave us Excel information, which isn't what we were seeking.


// bin_at is used to set the time grain for 1 hour, starting exactly 24 hours ago

| Summarize heartbeatPerHour = count () by bin_at (TimeGenerated, 1h, ago (29d)), Computer

| Extend availablePerHour = if (heartbeatPerHour > 0, true, false)

| Summarize totalAvailableHours = countif (availablePerHour == true) by Computer

| Extend availabilityRate = totalAvailableHours * 100.0 / 696

FYI - We are using LA workspace and Microsoft monitoring agent.

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,786 questions
Azure Health Data Services
Azure Health Data Services
An Azure offering that provides a suite of purpose-built technologies for protected health information in the cloud.
148 questions
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful