Action Group With Metric Alert
A 3-step recipe with Azure Monitor. We can help you get access.
Recipe · 3 steps
Action Group With Metric Alert
with Azure Monitor
Create an action group then a classic metric alert rule that targets it.
- Create or update the action group with a single email receiver that will be notified when alerts fire.
- Create or update a classic metric alert rule that monitors the supplied resource and is enabled on creation.
- Read the alert rule back to confirm it was created and capture its enabled state and last updated time.
What you'll need to have ready
- subscriptionId: The ID of the target subscription.
- resourceGroupName: The name of the resource group.
- actionGroupName: The name of the action group to create or update.
- groupShortName: The short name of the action group (max 12 characters).
- receiverName: The name of the email receiver inside the action group.
- emailAddress: The email address that should receive notifications.
- ruleName: The name of the classic metric alert rule.
- location: The Azure location for the action group and alert rule resources.
- monitoredResourceUri: The resource identifier the alert rule monitors.
For your developer
Arazzo workflow microsoft-azure-monitor:provision-action-group-and-alert, 3 operations: ActionGroups_CreateOrUpdate → AlertRules_CreateOrUpdate → AlertRules_Get. Specs on APIs.io.