What is a Azure Monitor Alert Action Group ?

An Azure Monitor Alert Action Group is a collection of one or more actions to be taken when an alert is triggered. It allows users to centralize and manage their alert notifications and responses.

For example, a user might create an action group that sends an email notification to the IT team and opens a ticket in their incident management system when an alert is triggered. The action group can also be configured to send a text message to the on-call engineer or to trigger an Azure Function to automate the remediation process.

Action groups can be reused across multiple alerts, making it easier to manage notifications and automate responses consistently.

To create an Azure Monitor Alert Action Group, you can use either the Azure Portal or Powershell. Here’s an example using the Azure Portal:

  1. Go to the Azure Portal and navigate to the Monitor tab.
  2. Click on “Alerts” and then “Manage alert rules.”
  3. Select “New alert rule” and configure the alert criteria.
  4. When selecting the action to take when the alert is triggered, select “Add action group” and then “Create action group.”
  5. Configure the action group by giving it a name and adding the necessary actions (such as sending an email, SMS, or triggering a webhook).
  6. Save the action group and configure the alert to use it when triggered.

Alternatively, you can use Powershell to create an Azure Monitor Alert Action Group:

  1. Open Powershell and connect to your Azure account.
  2. Use the New-AzActionGroup cmdlet to create a new action group and specify the necessary parameters such as name, email address, SMS number, etc.
  3. Use the Add-AzActionGroupReceiver cmdlet to add actions to the action group.
  4. Save the action group and use it when configuring your alerts using the New-AzMetricAlertRuleV2 cmdlet.
Author: tonyhughes