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-18Lines changed: 17 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,7 @@ In this example, the following steps create a Logic App that uses the [common al
116
116
1. In the **Search** field, search for and select **Initialize variable**.
117
117
1. In the **Name** field, enter the name of the variable, such as 'AffectedResources'.
118
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], '/')*
119
+
1. In the **Value** field, select **Add dynamic Content**. Select the **Expression** tab, and enter this string: `split(triggerBody()?['data']?['essentials']?['alertTargetIDs'][0], '/')`.
120
120
121
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.":::
122
122
@@ -126,10 +126,10 @@ In this example, the following steps create a Logic App that uses the [common al
1. The dynamic content now includes tags from the resource that you can use in your notification.
135
135
@@ -147,15 +147,15 @@ In this example, the following steps create a Logic App that uses the [common al
147
147
1. Sign into Office 365 when prompted to create a connection.
148
148
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.
149
149
For example:
150
-
- Enter the text: *An alert has been triggered with this monitoring condition:*. Then, select **monitorCondition** from the **Dynamic content** list.
151
-
- Enter the text: *Date fired:*. Then, select **firedDateTime** from the **Dynamic content** list.
152
-
- Enter the text: *Affected resources:*. Then, select **alertTargetIDs** from the **Dynamic content** list.
150
+
- Enter the text: `An alert has been triggered with this monitoring condition:`. Then, select **monitorCondition** from the **Dynamic content** list.
151
+
- Enter the text: `Date fired:`. Then, select **firedDateTime** from the **Dynamic content** list.
152
+
- Enter the text: `Affected resources:`. Then, select **alertTargetIDs** from the **Dynamic content** list.
153
153
154
154
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.
155
155
For example:
156
-
- Enter the text: *Alert:*. Then, select **alertRule** from the **Dynamic content** list.
157
-
- Enter the text: *with severity:*. Then, select **severity** from the **Dynamic content** list.
158
-
- Enter the text: *has condition:*. Then, select **monitorCondition** from the **Dynamic content** list.
156
+
- Enter the text: `Alert:`. Then, select **alertRule** from the **Dynamic content** list.
157
+
- Enter the text: `with severity:`. Then, select **severity** from the **Dynamic content** list.
158
+
- Enter the text: `has condition:`. Then, select **monitorCondition** from the **Dynamic content** list.
159
159
160
160
1. Enter the email address to send the alert to in the **To** field.
161
161
1. Select **Save**.
@@ -169,20 +169,19 @@ The next step is to create an action group to trigger your Logic App.
169
169
## [Post a Teams message](#tab/send-teams-message)
170
170
171
171
1. In the search field, search for *Microsoft Teams*.
172
-
173
172
1. Select **Microsoft Teams**
174
173
:::image type="content" source="./media/alerts-logic-apps/choose-operation-teams.png" alt-text="A screenshot showing add action page of the logic apps designer with Microsoft Teams selected.":::
175
174
1. Select **Post a message in a chat or channel** from the list of actions.
176
175
1. Sign into Teams when prompted to create a connection.
177
-
1. Select *User* from the **Post as** dropdown.
178
-
1. Select *Group chat* from the **Post in** dropdown.
176
+
1. Select **User** from the **Post as** dropdown.
177
+
1. Select **Group chat** from the **Post in** dropdown.
179
178
1. Select your group from the **Group chat** dropdown.
180
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.
181
180
For example:
182
-
- Enter *Alert:* then select **alertRule** from the **Dynamic content** list.
183
-
- Enter *with severity:* and select **severity** from the **Dynamic content** list.
184
-
- Enter *was fired at:* and select **firedDateTime** from the **Dynamic content** list.
185
-
- Add more fields according to your requirements.
181
+
1. Enter `Alert:` then select **alertRule** from the **Dynamic content** list.
182
+
1. Enter `with severity:` and select **severity** from the **Dynamic content** list.
183
+
1. Enter `was fired at:` and select **firedDateTime** from the **Dynamic content** list.
184
+
1. Add more fields according to your requirements.
186
185
1. Select **Save**
187
186
:::image type="content" source="./media/alerts-logic-apps/configure-teams-message.png" alt-text="A screenshot showing the parameters tab for the post a message in a chat or channel action.":::
0 commit comments