Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update be448849-0d7d-49ba-9c94-9573ee533d5d.kql #571

Closed
Closed
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
// cannot-be-validated-with-arg

// Azure Resource Graph Query
// Find all Subs without Resource Health Alerts configured at subscription level
resourcecontainers
| where type =~ 'microsoft.resources/subscriptions'
| join kind=leftouter (resources
| where type == 'microsoft.insights/activitylogalerts'
| where properties.enabled =~ 'true'
| mv-expand condition = properties.condition
| mv-expand scopes = properties.scopes
| where condition.allOf contains "ResourceHealth"
| project tostring(scopes)) on $left.id == $right.scopes
| where scopes =~ ''
| project recommendationId="be448849-0d7d-49ba-9c94-9573ee533d5d", name, id, tags, param1="No Resource Health Alerts"
Loading