Skip to content

Commit 1bb564a

Browse files
committed
add RG tags to logic app for alert notifications
1 parent 3aaf5bb commit 1bb564a

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

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

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,14 @@ In this example, the following steps create a Logic App that uses the [common al
109109
}
110110
```
111111

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-
116112
:::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.":::
117113

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.
118116
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], '/')*
122120

123121
:::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.":::
124122

@@ -136,13 +134,12 @@ In this example, the following steps create a Logic App that uses the [common al
136134
1. The dynamic content now includes tags from the resource that you can use in your notification.
137135

138136
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.
143138

144139
:::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.":::
145140

141+
## [Send an email](#tab/send-email)
142+
146143
1. In the search field, search for *outlook*.
147144
1. Select **Office 365 Outlook**.
148145
:::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

Comments
 (0)