You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/alerts/alerts-logic-apps.md
+17-16Lines changed: 17 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Customize alert notifications using Logic Apps
3
-
description: Learn how to create a logic app action to process Azure Monitor alerts.
3
+
description: Learn how to create a logic app to process Azure Monitor alerts.
4
4
author: EdB-MSFT
5
5
ms.topic: conceptual
6
6
ms.date: 09/07/2022
@@ -24,17 +24,17 @@ This article shows you how to create a Logic App and integrate it with an Azure
24
24
In this example, we'll use the following steps to create a Logic App that uses the [common alerts schema](./alerts-common-schema.md) to send details from the alert. The example uses the following steps:
25
25
26
26
1.[Create a Logic App](#create-a-logic-app) for sending an email or a Teams post.
27
-
1.[Create an alert action group](#create-an-action-group) that triggers the logic app
27
+
1.[Create an alert action group](#create-an-action-group) that triggers the logic app.
28
28
1.[Create a rule](#create-a-rule-using-your-action-group) the uses the action group.
29
29
## Create a Logic App
30
30
31
-
1. Create a new Logic app. Set **Logic App name** , select **Consumption Plan type**
31
+
1. Create a new Logic app. Set **Logic App name** , select **Consumption Plan type**.
32
32
1. Select **Review + create**, then select **Create**.
33
33
1. Select **Go to resource** when the deployment is complete.
1. Paste the common alert schema into the **Request Body JSON Schema** field from the following JSON:
39
39
```json
40
40
{
@@ -102,10 +102,11 @@ In this example, we'll use the following steps to create a Logic App that uses t
102
102
}
103
103
}
104
104
```
105
-
7. Select the **+** icon to insert a new step.
105
+
106
+
1. Select the **+** icon to insert a new step.
106
107
:::image type="content" source="./media/alerts-logic-apps/configure-http-request-received.png" alt-text="A screenshot showing the parameters for the when http request received step":::
107
108
108
-
Send an email or post a Teams message.
109
+
1. Send an email or post a Teams message.
109
110
110
111
## [Send an email](#tab/send-email)
111
112
@@ -123,11 +124,11 @@ For example:
123
124
1. In the **Subject** field, create the subject text by entering static text and including content taken from the alert payload by choosing fields from the **Dynamic content** list.
124
125
For example:
125
126
- Enter *Alert:* and select **alertRule** from the **Dynamic content** list.
126
-
- Then enter *with severity:* and select **severity** from the **Dynamic content** list
127
+
- Then enter *with severity:* and select **severity** from the **Dynamic content** list.
127
128
- Enter *has condition:* and select **monitorCondition** from the **Dynamic content** list.
128
129
129
130
1. Enter the email address to send the alert to in the **To** field.
130
-
1. Select **Save**
131
+
1. Select **Save**.
131
132
132
133
:::image type="content" source="./media/alerts-logic-apps/configure-email.png" alt-text="A screenshot showing the parameters tab for the send email action.":::
133
134
@@ -167,7 +168,7 @@ To trigger your Logic app, create an action group, then create an alert that use
167
168
1. Go to the Azure Monitor page and select **Alerts** from the sidebar.
168
169
1. Select **Action groups**, then select **Create**.
169
170
1. Select a **Subscription**, **Resource group** and **Region**.
170
-
1. Enter an **Actions group name** and **Display name**
171
+
1. Enter an **Actions group name** and **Display name**.
171
172
1. Select the **Actions** tab.
172
173
:::image type="content" source="./media/alerts-logic-apps/create-action-group.png" alt-text="A screenshot showing the actions tab of a create action group page":::
173
174
1. In the **Actions** tab under **Action type**, select **Logic App**.
@@ -178,13 +179,13 @@ To trigger your Logic app, create an action group, then create an alert that use
178
179
1. Select **Review + create**, the **Create**.
179
180
:::image type="content" source="./media/alerts-logic-apps/create-action-group-actions.png" alt-text="A screenshot showing the Logic Apps blade of a create action group, actions tab":::
180
181
181
-
## Test your action group.
182
+
## Test your action group
182
183
183
184
1. Select your action group.
184
-
1. In the **Logic App** section, select **Test action group(preview)**
185
+
1. In the **Logic App** section, select **Test action group(preview)**.
185
186
:::image type="content" source="./media/alerts-logic-apps/test-action-group1.png" alt-text="A screenshot showing an action group details page with test action group highlighted":::
186
187
1. Select a **Sample alert type** from the dropdown.
187
-
1. Select **Test**
188
+
1. Select **Test**.
188
189
:::image type="content" source="./media/alerts-logic-apps/test-action-group2.png" alt-text="A screenshot showing an action group details test page":::
189
190
190
191
The following email will be sent to the specified account:
@@ -193,9 +194,9 @@ To trigger your Logic app, create an action group, then create an alert that use
193
194
194
195
## Create a rule using your action group
195
196
1. Create a rule for one of your resources.
196
-
1. In the actions section of your rule, select **Select action groups**
197
+
1. In the actions section of your rule, select **Select action groups**.
197
198
1. Select your action group from the list.
198
-
1. Select **Select**
199
+
1. Select **Select**.
199
200
1. Finish the creation of your rule.
200
201
:::image type="content" source="./media/alerts-logic-apps/select-action-groups.png" alt-text="A screenshot showing the actions tab of the create rules page and the select action groups blade.":::
0 commit comments