capabilities.work

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

Create an action group then a classic metric alert rule that targets it.

  1. Create or update the action group with a single email receiver that will be notified when alerts fire.
  2. Create or update a classic metric alert rule that monitors the supplied resource and is enabled on creation.
  3. 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.