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/event-grid/publish-iot-hub-events-to-logic-apps.md
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,11 @@
2
2
title: Tutorial - Use IoT Hub events to trigger Azure Logic Apps
3
3
description: This tutorial shows how to use the event routing service of Azure Event Grid, create automated processes to perform Azure Logic Apps actions based on IoT Hub events.
4
4
services: iot-hub, event-grid
5
-
author: philmea
5
+
author: kgremban
6
6
ms.service: iot-hub
7
7
ms.topic: tutorial
8
8
ms.date: 09/14/2020
9
-
ms.author: philmea
9
+
ms.author: kgremban
10
10
ms.custom: devx-track-azurecli
11
11
---
12
12
@@ -56,13 +56,13 @@ Next, create a logic app and add an HTTP event grid trigger that processes reque
56
56
57
57
1. In the [Azure portal](https://portal.azure.com), select **Create a resource**, then type "logic app" in the search box and select return. Select **Logic App** from the results.
:::image type="content" source="./media/publish-iot-hub-events-to-logic-apps/select-logic-app.png" alt-text="Screenshot of how to select the logic app from a list of resources." lightbox="./media/publish-iot-hub-events-to-logic-apps/select-logic-app.png":::
60
60
61
61
1. On the next screen, select **Create**.
62
62
63
-
1. Give your logic app a name that's unique in your subscription, then select the same subscription, resource group, and location as your IoT hub.
63
+
1. Give your logic app a unique name in your subscription, then select the same subscription, resource group, and location as your IoT hub. Choose the **Consumption** plan type.
64
64
65
-

65
+
:::image type="content" source="./media/publish-iot-hub-events-to-logic-apps/create-logic-app-fields.png" alt-text="Screenshot of how to configure your logic app." lightbox="./media/publish-iot-hub-events-to-logic-apps/create-logic-app-fields.png":::
66
66
67
67
1. Select **Review + create**.
68
68
@@ -72,6 +72,8 @@ Next, create a logic app and add an HTTP event grid trigger that processes reque
72
72
73
73
1. In the Logic Apps Designer, page down to see **Templates**. Choose **Blank Logic App** so that you can build your logic app from scratch.
74
74
75
+
:::image type="content" source="./media/publish-iot-hub-events-to-logic-apps/logic-app-designer-template.png" alt-text="Screenshot of how to configure your logic app." lightbox="./media/publish-iot-hub-events-to-logic-apps/logic-app-designer-template.png":::
76
+
75
77
### Select a trigger
76
78
77
79
A trigger is a specific event that starts your logic app. For this tutorial, the trigger that sets off the workflow is receiving a request over HTTP.
@@ -86,12 +88,14 @@ A trigger is a specific event that starts your logic app. For this tutorial, the
@@ -140,7 +144,7 @@ Actions are any steps that occur after the trigger starts the logic app workflow
140
144
141
145
Your email template may look like this example:
142
146
143
-

147
+
:::image type="content" source="./media/publish-iot-hub-events-to-logic-apps/email-content.png" alt-text="Screenshot of how to create an event email in the template." lightbox="./media/publish-iot-hub-events-to-logic-apps/email-content.png":::
144
148
145
149
1. Select **Save** in the Logic Apps Designer.
146
150
@@ -193,7 +197,7 @@ In this section, you configure your IoT Hub to publish events as they occur.
193
197
194
198
When you're done, the pane should look like the following example:
:::image type="content" source="./media/publish-iot-hub-events-to-logic-apps/subscription-form.png" alt-text="Screenshot of your 'Create Event Subscription' page in the Azure portal." lightbox="./media/publish-iot-hub-events-to-logic-apps/subscription-form.png":::
197
201
198
202
1. Select **Create**.
199
203
@@ -209,6 +213,8 @@ Test your logic app by quickly simulating a device connection using the Azure CL
209
213
az iot hub device-identity create --device-id simDevice --hub-name {YourIoTHubName}
210
214
```
211
215
216
+
This could take a minute. You'll see a `json` printout once it's created.
217
+
212
218
1. Run the following command to simulate connecting your device to IoT Hub and sending telemetry:
0 commit comments