Azure/azure-monitor-baseline-alerts

[Question/Feedback]: Monitor Disable Parameter

Closed this issue · 3 comments

Check for previous/existing GitHub issues

  • I have checked for previous/existing GitHub issues

Description

In some VM JSON policies, the Monitor Disable Parameter is not available

Hello @MohmadEh ,
thanks for your feedback. I will take a look at the files and let you know as soon as possible.

Thanks,
Bruno.

Hello @MohmadEh,
as promised I investigated and found out that these alerts are on a subscription scope, so that tag will not really apply as we imagine. Moreover, tagging a subscription with the MonitorDisable will stop all the alerts on all resources. Should you need to exclude VMs, you could change the query by adding a where condition, right after the table name, to exclude computers with given names or in a given list. It could be something like:

Heartbeat
| where Computer !in ('ServerA', 'ServerB', 'ServerC')

Thanks,
Bruno.

Hello @MohmadEh ,
given the above explanation I am going to close this issue as completed. Feel free to reopen it or to create a new one should it be the case.

Thanks,
Bruno.