Skip to content

Commit 91b73fa

Browse files
committed
editing blocking issue
1 parent 1bb564a commit 91b73fa

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

articles/azure-monitor/alerts/alerts-logic-apps.md

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ In this example, the following steps create a Logic App that uses the [common al
116116
1. In the **Search** field, search for and select **Initialize variable**.
117117
1. In the **Name** field, enter the name of the variable, such as 'AffectedResources'.
118118
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], '/')`.
120120

121121
:::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.":::
122122

@@ -126,10 +126,10 @@ In this example, the following steps create a Logic App that uses the [common al
126126

127127
|Field|String value|
128128
|---------|---------|
129-
|Subscription|*variables('AffectedResource')[2]*|
130-
|Resource Group|*variables('AffectedResource')[4]*|
131-
|Resource Provider|*variables('AffectedResource')[6]*|
132-
|Short Resource Id|*concat(variables('AffectedResource')[7], '/', variables('AffectedResource')[8])*|
129+
|Subscription|`variables('AffectedResource')[2]`|
130+
|Resource Group|`variables('AffectedResource')[4]`|
131+
|Resource Provider|`variables('AffectedResource')[6]`|
132+
|Short Resource Id|`concat(variables('AffectedResource')[7], '/', variables('AffectedResource')[8]`)|
133133
|Client Api Version|2021-06-01|
134134
1. The dynamic content now includes tags from the resource that you can use in your notification.
135135

@@ -147,15 +147,15 @@ In this example, the following steps create a Logic App that uses the [common al
147147
1. Sign into Office 365 when prompted to create a connection.
148148
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.
149149
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.
153153

154154
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.
155155
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.
159159

160160
1. Enter the email address to send the alert to in the **To** field.
161161
1. Select **Save**.
@@ -169,20 +169,19 @@ The next step is to create an action group to trigger your Logic App.
169169
## [Post a Teams message](#tab/send-teams-message)
170170

171171
1. In the search field, search for *Microsoft Teams*.
172-
173172
1. Select **Microsoft Teams**
174173
:::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.":::
175174
1. Select **Post a message in a chat or channel** from the list of actions.
176175
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.
179178
1. Select your group from the **Group chat** dropdown.
180179
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.
181180
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.
186185
1. Select **Save**
187186
:::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.":::
188187

0 commit comments

Comments
 (0)