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
+21-16Lines changed: 21 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,19 +143,20 @@ This example creates a logic app that uses the [common alerts schema](./alerts-c
143
143
144
144
1. In the search field, search for **Outlook**.
145
145
1. Select **Office 365 Outlook**.
146
+
146
147
:::image type="content" source="./media/alerts-logic-apps/choose-operation-outlook.png" alt-text="Screenshot that shows the Add an action page of the Logic Apps Designer with Office 365 Outlook selected.":::
147
148
1. Select **Send an email (V2)** from the list of actions.
148
149
1. Sign in to Office 365 when you're prompted to create a connection.
149
150
1. Create the email **Body** by entering static text and including content taken from the alert payload by choosing fields from the **Dynamic content** list.
150
-
For example, for:
151
-
- **An alert has monitoring condition:** select **monitorCondition** from the **Dynamic content** list.
152
-
- **Date fired:** select **firedDateTime** from the **Dynamic content** list.
153
-
- **Affected resources:** and select **alertTargetIDs** from the **Dynamic content** list.
151
+
For example:
152
+
- **An alert has monitoring condition:** Select **monitorCondition** from the **Dynamic content** list.
153
+
- **Date fired:** Select **firedDateTime** from the **Dynamic content** list.
154
+
- **Affected resources:** Select **alertTargetIDs** from the **Dynamic content** list.
154
155
155
-
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. For example, for:
156
-
- **Alert:** select **alertRule** from the **Dynamic content** list.
157
-
- **with severity:** select **severity** from the **Dynamic content** list.
158
-
- **has condition:** select **monitorCondition** from the **Dynamic content** list.
156
+
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. For example:
157
+
- **Alert:** Select **alertRule** from the **Dynamic content** list.
158
+
- **with severity:** Select **severity** from the **Dynamic content** list.
159
+
- **has condition:** Select **monitorCondition** from the **Dynamic content** list.
159
160
160
161
1. Enter the email address to send the alert to the **To** field.
161
162
1. Select **Save**.
@@ -170,19 +171,20 @@ The next step is to create an action group to trigger your logic app.
170
171
171
172
1. In the search field, search for **Microsoft Teams**.
172
173
1. Select **Microsoft Teams**.
174
+
173
175
:::image type="content" source="./media/alerts-logic-apps/choose-operation-teams.png" alt-text="Screenshot that shows the Add an action page of the Logic Apps Designer with Microsoft Teams selected.":::
174
176
1. Select **Post message in a chat or channel** from the list of actions.
175
177
1. Sign in to Teams when you're prompted to create a connection.
176
178
1. Select **User** from the **Post as** dropdown.
177
179
1. Select **Group chat** from the **Post in** dropdown.
178
180
1. Select your group from the **Group chat** dropdown.
179
-
1. Create the message text in the **Message** field by entering static text and including content taken from the alert payload by choosing fields from the **Dynamic content** list.
180
-
For example, for:
181
-
1. **Alert:** select **alertRule** from the **Dynamic content** list.
182
-
1. **with severity:** select **severity** from the **Dynamic content** list.
183
-
1. **was fired at:** select **firedDateTime** from the **Dynamic content** list.
181
+
1. Create the message text in the **Message** field by entering static text and including content taken from the alert payload by choosing fields from the **Dynamic content** list. For example:
182
+
1. **Alert:** Select **alertRule** from the **Dynamic content** list.
183
+
1. **with severity:** Select **severity** from the **Dynamic content** list.
184
+
1. **was fired at:** Select **firedDateTime** from the **Dynamic content** list.
184
185
1. Add more fields according to your requirements.
185
186
1. Select **Save**.
187
+
186
188
:::image type="content" source="./media/alerts-logic-apps/configure-teams-message.png" alt-text="Screenshot that shows the Parameters tab on the Post message in a chat or channel pane.":::
187
189
188
190
You've created a logic app that sends a Teams message to the specified group, with details from the alert that triggered it.
@@ -209,13 +211,15 @@ To trigger your logic app, create an action group. Then create an alert that use
209
211
1. Select **OK**.
210
212
1. Enter a name in the **Name** field.
211
213
1. Select **Review + create** > **Create**.
212
-
:::image type="content" source="./media/alerts-logic-apps/create-action-group-actions.png" alt-text="Screenshot that shows the Actions tab on the Create an action group page and the Logic App pane.":::
214
+
215
+
:::image type="content" source="./media/alerts-logic-apps/create-action-group-actions.png" alt-text="Screenshot that shows the Actions tab on the Create an action group page and the Logic App pane.":::
213
216
214
217
## Test your action group
215
218
216
219
1. Select your action group.
217
220
1. In the **Logic App** section, select **Test action group (preview)**.
218
-
:::image type="content" source="./media/alerts-logic-apps/test-action-group1.png" alt-text="Screenshot that shows an action group details page with the Test action group option.":::
221
+
222
+
:::image type="content" source="./media/alerts-logic-apps/test-action-group1.png" alt-text="Screenshot that shows an action group details page with the Test action group option.":::
219
223
1. Select a sample alert type from the **Select sample type** dropdown.
220
224
1. Select **Test**.
221
225
@@ -232,7 +236,8 @@ To trigger your logic app, create an action group. Then create an alert that use
232
236
1. Select your action group from the list.
233
237
1. Choose **Select**.
234
238
1. Finish the creation of your rule.
235
-
:::image type="content" source="./media/alerts-logic-apps/select-action-groups.png" alt-text="Screenshot that shows the Actions tab on the Create an alert rule pane and the Select action groups pane.":::
239
+
240
+
:::image type="content" source="./media/alerts-logic-apps/select-action-groups.png" alt-text="Screenshot that shows the Actions tab on the Create an alert rule pane and the Select action groups pane.":::
0 commit comments