Forum Discussion
Racheal2k
Jul 07, 2021Copper Contributor
Alert when windows service is stopped in all VMs
Hi , This discussion is continuous of this . I have a two nodes that run a Windows Service. By default, the service is only up on one node at a time. I need to create an alert when the serv...
CliveWatson
Microsoft
Jul 07, 2021https://docs.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-troubleshoot-log#incorrect-query-time-range-configured The portal overrides the query time setting.
Racheal2k
Jul 08, 2021Copper Contributor
Thanks .I was checking the same link too and changed the time generated to check for last 1 day .
It worked after below tweak in the query
status
| where isnotempty(winstatus) // added this line to check for null values
| extend winstatus = iif(winstatus == 'running', 1, 0)
Regards,
Racheal