Alert Rule Audit
A 3-step recipe with Azure Monitor. We can help you get access.
Recipe · 3 steps
Alert Rule Audit
with Azure Monitor
List classic alert rules and tag the first one as audited when present.
- List the classic metric alert rules in the resource group and branch on whether any exist.
- Read the named alert rule in detail to capture its enabled state and condition before tagging it.
- Patch the alert rule's tags to record that it has been audited.
What you'll need to have ready
- subscriptionId: The ID of the target subscription.
- resourceGroupName: The name of the resource group.
- ruleName: The name of the rule to inspect and tag when rules are present.
- auditTag: The value to write to the audited tag on the rule.
For your developer
Arazzo workflow microsoft-azure-monitor:audit-alert-rules, 3 operations: AlertRules_ListByResourceGroup → AlertRules_Get → AlertRules_Update. Specs on APIs.io.