|
| 1 | +--- |
| 2 | +title: Create or edit an activity log, service health, or resource health alert rule |
| 3 | +description: This article shows you how to create a new activity log, service health, and resource health alert rule. |
| 4 | +author: AbbyMSFT |
| 5 | +ms.author: abbyweisberg |
| 6 | +ms.topic: how-to |
| 7 | +ms.date: 11/27/2023 |
| 8 | +ms.reviewer: harelbr |
| 9 | +--- |
| 10 | + |
| 11 | +# Create or edit an activity log, service health, or resource health alert rule |
| 12 | + |
| 13 | +This article shows you how to create or edit an activity log, service health, or resource health alert rule. To learn more about alerts, see the [alerts overview](alerts-overview.md). |
| 14 | + |
| 15 | +You create an alert rule by combining the resources to be monitored, the monitoring data from the resource, and the conditions that you want to trigger the alert. You can then define [action groups](./action-groups.md) and [alert processing rules](alerts-action-rules.md) to determine what happens when an alert is triggered. |
| 16 | + |
| 17 | +Alerts triggered by these alert rules contain a payload that uses the [common alert schema](alerts-common-schema.md). |
| 18 | + |
| 19 | +[!INCLUDE [alerts-wizard-access](../includes/alerts-wizard-access.md)] |
| 20 | + |
| 21 | +[!INCLUDE [alerts-wizard-scope](../includes/alerts-wizard-scope.md)] |
| 22 | + |
| 23 | +## Configure the alert rule conditions |
| 24 | + |
| 25 | +1. On the **Condition** tab, when you select the **Signal name** field, the most commonly used signals are displayed in the drop-down list. Select one of these popular signals, or select **See all signals** if you want to choose a different signal for the condition. |
| 26 | + |
| 27 | + :::image type="content" source="media/alerts-create-new-alert-rule/alerts-popular-signals.png" alt-text="Screenshot that shows popular signals when creating an alert rule."::: |
| 28 | + |
| 29 | +1. (Optional) If you chose to **See all signals** in the previous step, use the **Select a signal** pane to search for the signal name or filter the list of signals. Filter by: |
| 30 | + - **Signal type**: The [type of alert rule](alerts-overview.md#types-of-alerts) you're creating. |
| 31 | + - **Signal source**: The service sending the signal. |
| 32 | + |
| 33 | + This table describes the services available for activity log alert rules: |
| 34 | + |
| 35 | + | Signal source | Description | |
| 36 | + |--------------------------|-----------------------------------------------------------------| |
| 37 | + | Activity log – Policy | The service that provides the Policy activity log events. | |
| 38 | + | Activity log – Autoscale | The service that provides the Autoscale activity log events. | |
| 39 | + | Activity log – Security | The service that provides the Security activity log events. | |
| 40 | + | Resource health | The service that provides the resource-level health status. | |
| 41 | + | Service health | The service that provides the subscription-level health status. | |
| 42 | + |
| 43 | + Select the **Signal name** and **Apply**. |
| 44 | + |
| 45 | + #### [Activity log alert](#tab/activity-log) |
| 46 | + |
| 47 | + 1. On the **Conditions** pane, select the **Chart period**. |
| 48 | + 1. The **Preview** chart shows you the results of your selection. |
| 49 | + 1. Select values for each of these fields in the **Alert logic** section: |
| 50 | + |
| 51 | + |Field |Description | |
| 52 | + |---------|---------| |
| 53 | + |Event level| Select the level of the events for this alert rule. Values are **Critical**, **Error**, **Warning**, **Informational**, **Verbose**, and **All**.| |
| 54 | + |Status|Select the status levels for the alert.| |
| 55 | + |Event initiated by|Select the user or service principal that initiated the event.| |
| 56 | + |
| 57 | + #### [Resource Health alert](#tab/resource-health) |
| 58 | + |
| 59 | + 1. On the **Conditions** pane, select values for each of these fields: |
| 60 | + |
| 61 | + |Field |Description | |
| 62 | + |---------|---------| |
| 63 | + |Event status| Select the statuses of Resource Health events. Values are **Active**, **In Progress**, **Resolved**, and **Updated**.| |
| 64 | + |Current resource status|Select the current resource status. Values are **Available**, **Degraded**, and **Unavailable**.| |
| 65 | + |Previous resource status|Select the previous resource status. Values are **Available**, **Degraded**, **Unavailable**, and **Unknown**.| |
| 66 | + |Reason type|Select the causes of the Resource Health events. Values are **Platform Initiated**, **Unknown**, and **User Initiated**.| |
| 67 | + |
| 68 | + #### [Service Health alert](#tab/service-health) |
| 69 | + |
| 70 | + 1. On the **Conditions** pane, select values for each of these fields: |
| 71 | + |
| 72 | + |Field |Description | |
| 73 | + |---------|---------| |
| 74 | + |Services| Select the Azure services.| |
| 75 | + |Regions|Select the Azure regions.| |
| 76 | + |Event types|Select the types of Service Health events. Values are **Service issue**, **Planned maintenance**, **Health advisories**, and **Security advisories**.| |
| 77 | + |
| 78 | + --- |
| 79 | + |
| 80 | +[!INCLUDE [alerts-wizard-actions](../includes/alerts-wizard-actions.md)] |
| 81 | + |
| 82 | +## Configure the alert rule details |
| 83 | + |
| 84 | +:::image type="content" source="media/alerts-create-new-alert-rule/alerts-activity-log-rule-details-tab.png" alt-text="Screenshot that shows the Actions tab when creating a new activity log alert rule."::: |
| 85 | + |
| 86 | +1. Enter values for the **Alert rule name** and the **Alert rule description**. |
| 87 | +1. Select **Enable upon creation** for the alert rule to start running as soon as you're done creating it. |
| 88 | + |
| 89 | +1. [!INCLUDE [alerts-wizard-custom=properties](../includes/alerts-wizard-custom-properties.md)] |
| 90 | + |
| 91 | +[!INCLUDE [alerts-wizard-finish](../includes/alerts-wizard-finish.md)] |
| 92 | + |
| 93 | +## Next steps |
| 94 | + [View and manage your alert instances](alerts-manage-alert-instances.md) |
0 commit comments