Use action rules to manage alert notifications on Azure Stack Edge devices
APPLIES TO:
Azure Stack Edge Pro - GPU
Azure Stack Edge Pro 2
Azure Stack Edge Pro R
Azure Stack Edge Mini R
This article describes how to create action rules in the Azure portal to trigger or suppress alert notifications for device events that occur within a resource group, an Azure subscription, or an individual Azure Stack Edge resource.
About action rules
An action rule can trigger or suppress alert notifications. The action rule is added to an action group - a set of notification preferences that's used to notify users who need to act on alerts triggered in different contexts for a resource or set of resources.
For more information about action rules, see Configuring an action rule. For more information about action groups, see Create and manage action groups in the Azure portal.
Note
The action rules feature is in preview. Some screens and steps might change as the process is refined.
Create an action rule
Take the following steps in the Azure portal to create an action rule for your Azure Stack Edge device.
Note
These steps create an action rule that sends notifications to an action group. For details about creating an action rule to suppress notifications, see Configuring an action rule.
Go to the Azure Stack Edge device in the Azure portal, and select the Alerts menu item (under Monitoring). Then select Action rules (preview).

In the Action rules (preview), select + Create.
On the Create action rule screen, create a Scope to select an Azure subscription, resource group, or target resource. The action rule will act on all alerts generated within that scope.
Select Edit beside Scope to open the Select scope panel.
On the Select Scope panel, select the Subscription for the action rule, and optionally filter by a Resource type. To filter to Azure Stack Edge resources, select Data Box Edge devices (dataBoxEdge).

The Resource area lists the available resources based on your selections.
Select the check box by each resource you want to apply the rule to. You can select the subscription, resource groups, or individual resources.
When you finish, select Done.

The Create action rule screen shows the selected scope.

Use Filter options to narrow the application of the rule to a subset of alerts within the selected scope.
Select Add to open the Add filters pane.

On the Add filters pane, under Filters, add each filter you want to apply. For each filter, select the filter type, Operator, and Value.
For a list of filter options, see Filter criteria.
The sample filters below apply to all alerts at Severity levels 2, 3, and 4 that the Monitor service raises for Azure Stack Edge resources.

When you finish adding filters, select Done.
On the Create action rule screen, select Action group to create a rule that sends notifications. Then, by Actions, choose Select.

Note
To create a rule that suppresses notifications, you would choose Suppression. For more information, see Configuring an action rule.
On the Add action groups screen, select the action group to use with this action rule. Then choose Select. Your new action rule will be added to the notification preferences of the action group.
If you need to create a new action group, select + Create action group, and follow the steps in Create an action group by using the Azure portal.

Give the new action rule a Name and Description (optional), and assign the rule to a resource group.
The new rule will be enabled by default. If you don't want to start using the rule immediately, select No for Enable rule update creation.
When you finish your settings, select Create.

The Action rules (Preview) screen opens, but you might not see your new action rule immediately. The focus is All resource groups.
To see your new action rule, select the resource group for the rule.

View notifications
Notifications go out when a new event triggers an alert for a resource that's within the scope of an action rule.
The action group for a rule sets who receives a notification and the type of notification that's sent - email, a Short Message Service (SMS) message, or both.
It might take a few minutes to receive notifications after an alert is triggered.
The email notification will look similar to this one.

Next steps
Povratne informacije
Pošalјite i prikažite povratne informacije za