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
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,15 +116,15 @@ This example creates a logic app that uses the [common alerts schema](./alerts-c
116
116
117
117
1. Select **+** > **Add an action** to insert a new step.
118
118
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**.
119
+
1. In the **Name** field, enter the name of the variable, such as **AffectedResource**.
120
120
1. In the **Type** field, select **Array**.
121
121
1. In the **Value** field, select **Add dynamic Content**. Select the **Expression** tab and enter the string `split(triggerBody()?['data']?['essentials']?['alertTargetIDs'][0], '/')`.
122
122
123
123
:::image type="content" source="./media/alerts-logic-apps/initialize-variable.png" alt-text="Screenshot that shows the Parameters tab for the Initialize variable pane.":::
124
124
125
125
1. Select **+** > **Add an action** to insert another step.
126
126
1. In the **Search** field, search for and select **Azure Resource Manager** > **Read a resource**.
127
-
1. Populate the fields of the **Read a resource** action with the array values from the `AffectedResources` variable. In each of the fields, select the field and scroll down to **Enter a custom value**. Select **Add dynamic content**, and then select the **Expression** tab. Enter the strings from this table:
127
+
1. Populate the fields of the **Read a resource** action with the array values from the `AffectedResource` variable. In each of the fields, select the field and scroll down to **Enter a custom value**. Select **Add dynamic content**, and then select the **Expression** tab. Enter the strings from this table:
128
128
129
129
|Field|String value|
130
130
|---------|---------|
@@ -247,4 +247,4 @@ To trigger your logic app, create an action group. Then create an alert that use
247
247
## Next steps
248
248
249
249
* [Learn more about action groups](./action-groups.md)
250
-
* [Learn more about the common alert schema](./alerts-common-schema.md)
250
+
* [Learn more about the common alert schema](./alerts-common-schema.md)
0 commit comments