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
+8-11Lines changed: 8 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,16 +109,14 @@ In this example, the following steps create a Logic App that uses the [common al
109
109
}
110
110
```
111
111
112
-
113
-
1. (Optional). You can customize the alert notification by extracting information about the resource using resource tags. You can then include those resource tags to the alert payload and use the information in your logical expressions for sending the notifications. Create a variable for the Affected Resource IDs and split them into in an array to add to the payload. You can then use these values to customize the alert notification.
114
-
1. Select **+** and **Add an action** to insert a new step.
115
-
116
112
:::image type="content" source="./media/alerts-logic-apps/configure-http-request-received.png" alt-text="A screenshot showing the parameters for the http request received step.":::
117
113
114
+
1. (Optional). You can customize the alert notification by extracting information about the resource. You can then include those resource tags in the alert payload and use the information in your logical expressions for sending the notifications. To do this, we will create a variable for the affected resource Ids, and then split the information about the resources into in an array to add to the payload. You can then use these values to customize the alert notification.
115
+
1. Select **+** and **Add an action** to insert a new step.
118
116
1. In the **Search** field, search for and select **Initialize variable**.
119
-
1. In the **Name** field, enter the name of the variable, such as 'AffectedResources'.
120
-
1. In the **Type** field, select **Array**.
121
-
1. In the **Value** field, select **Add dynamic Content**. Select the **Expression** tab, and enter this string: *split(triggerBody()?['data']?['essentials']?['alertTargetIDs'][0], '/')*
117
+
1. In the **Name** field, enter the name of the variable, such as 'AffectedResources'.
118
+
1. In the **Type** field, select **Array**.
119
+
1. In the **Value** field, select **Add dynamic Content**. Select the **Expression** tab, and enter this string: *split(triggerBody()?['data']?['essentials']?['alertTargetIDs'][0], '/')*
122
120
123
121
:::image type="content" source="./media/alerts-logic-apps/initialize-variable.png" alt-text="A screenshot showing the parameters for the initializing a variable in Logic Apps.":::
124
122
@@ -136,13 +134,12 @@ In this example, the following steps create a Logic App that uses the [common al
136
134
1. The dynamic content now includes tags from the resource that you can use in your notification.
137
135
138
136
1. Send an email or post a Teams message.
139
-
140
-
## [Send an email](#tab/send-email)
141
-
142
-
1. Select the **+** icon to insert a new step.
137
+
1. Select **+** and **Add an action** to insert a new step.
143
138
144
139
:::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.":::
145
140
141
+
## [Send an email](#tab/send-email)
142
+
146
143
1. In the search field, search for *outlook*.
147
144
1. Select **Office 365 Outlook**.
148
145
:::image type="content" source="./media/alerts-logic-apps/choose-operation-outlook.png" alt-text="A screenshot showing add action page of the logic apps designer with Office 365 Outlook selected.":::
0 commit comments