Forum Discussion
parekhravik
Apr 30, 2024Copper Contributor
Monitor Azure VM Linux Mount Point Availablity
Hi Team, Sorry if it's a very basic question. Could you please suggest how can we monitor mounted disks on Azure VM for its availability? In past especially in case of On-Prem setup, we've f...
Clive_Watson
Apr 30, 2024Bronze Contributor
This will need some work, but its a place to start from, its from a much larger query I did ages ago (so I hope its ok), it checks what drives you had mounted last week compared to this week
InsightsMetrics
| where TimeGenerated between (startofweek(now(),-1) .. endofweek(now(),-1) )
| where Tags has "mountid"
| parse Tags with * '":' diskLetter ':' *
| where strlen( diskLetter) == 2
| summarize setLastWeek=make_set(diskLetter) by Computer
|join
(
InsightsMetrics
| where TimeGenerated between (startofweek(now()) .. endofweek(now()) )
//| summarize min(TimeGenerated), max(TimeGenerated)
| where Tags has "mountid"
| parse Tags with * '":' diskLetter ':' *
| where strlen( diskLetter) == 2
| summarize setThisWeek=make_set(diskLetter) by Computer
) on Computer
// now check is the two sets are the same, if not show
| where tostring(setLastWeek) != tostring(setThisWeek)
- parekhravikMay 05, 2024Copper Contributor
Apologies for late response, I've been out.
Thank you for the suggestion. I'll try this out and update.