Skip to content

Commit 054fe21

Browse files
committed
Fixed a few steps - wording
1 parent edf65b8 commit 054fe21

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

articles/iot-hub/iot-hub-how-to-order-connection-state-events.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ Let's create a logic app and add an Event Grid trigger that monitors the resourc
5252
- A plan type of *Consumption*
5353

5454
>[!NOTE]
55-
> The *Consumption* plan type is the option that enables the Logic Apps Designer in the UI. If you choose *Standard* (the default), then you must create a new workflow in order for the Logic Apps Designer to become available.
55+
> The *Consumption* plan type is the option that enables the **Logic app designer** in the UI. If you choose *Standard* (the default), then you must create a new workflow in order for the **Logic app designer** to become available.
5656
5757
:::image type="content" source="media/iot-hub-how-to-order-connection-state-events/new-logic-app.png" alt-text="Screenshot of how to create a logic app in the Azure portal." lightbox="media/iot-hub-how-to-order-connection-state-events/new-logic-app.png":::
5858

5959
1. Select **Review + Create** to review your configuration, then select **Create** to create the logic app.
6060

61-
1. You've now created an Azure resource for your logic app. After Azure deploys your logic app, select **Go to resource**. Logic Apps Designer shows you templates for common patterns so you can get started faster.
61+
1. You've now created an Azure resource for your logic app. After Azure deploys your logic app, select **Go to resource**. **Logic app designer** shows you templates for common patterns so you can get started faster.
6262

63-
1. In the Logic Apps Designer, scroll until you see the **Templates** section, then choose **Blank Logic App** so that you can build your logic app from scratch.
63+
1. In the **Logic app designer**, scroll until you see the **Templates** section, then choose **Blank Logic App** so that you can build your logic app from scratch.
6464

6565
### Select a trigger
6666

@@ -105,11 +105,9 @@ A trigger is a specific event that starts your logic app. For this tutorial, the
105105

106106
:::image type="content" source="media/iot-hub-how-to-order-connection-state-events/paste-sample-payload.png" alt-text="Screenshot of the sample JSON payload pasted into the text box in Azure." lightbox="media/iot-hub-how-to-order-connection-state-events/paste-sample-payload.png":::
107107

108-
5. You may receive a pop-up notification that says, **Remember to include a Content-Type header set to application/json in your request.** You can safely ignore this suggestion, and move on to the next section.
109-
110108
### Create a condition
111109

112-
In your logic app workflow, conditions help run specific actions after passing that specific condition. Once the condition is met, a desired action can be defined. For this tutorial, the condition is to check whether eventType is device connected or device disconnected. The action will be to execute the stored procedure in your database.
110+
Conditions help run specific actions after passing that specific condition. For this article, the condition is to check whether **eventType** is either device connected or device disconnected. The action executed when that **eventType** is true is the creation of a document in Azure Cosmos DB. This condition is created in the **Logic app designer**.
113111

114112
1. Select **+ New step**, then the **Built-in** tab, then find and select the control called **Condition**.
115113

@@ -122,20 +120,20 @@ In your logic app workflow, conditions help run specific actions after passing t
122120
* This second row is similar to the first row, except we look for disconnection events.
123121

124122
Use **eventType**, **is equal to**, and **Microsoft.Devices.DeviceDisconnected** for the row values.
123+
124+
Add a checkmark in front of each row, as shown.
125125

126-
:::image type="content" source="media/iot-hub-how-to-order-connection-state-events/condition-detail.jpg" alt-text="Screenshot of the full For Each condition." lightbox="media/iot-hub-how-to-order-connection-state-events/condition-detail.jpg":::
126+
:::image type="content" source="media/iot-hub-how-to-order-connection-state-events/condition-detail.jpg" alt-text="Screenshot of the full For Each condition." lightbox="media/iot-hub-how-to-order-connection-state-events/condition-detail.jpg":::
127127

128128
1. In the **if true** dialog, click on **Add an action**.
129129

130130
:::image type="content" source="media/iot-hub-how-to-order-connection-state-events/action-if-true.png" alt-text="Screenshot of the 'If true' box in Azure." lightbox="media/iot-hub-how-to-order-connection-state-events/action-if-true.png":::
131131

132-
1. Search for Cosmos DB and select **Azure Cosmos DB — Execute stored procedure (V3)**
132+
1. Search for Cosmos DB and select **Azure Cosmos DB — Create or update document (V3)**
133133

134134
:::image type="content" source="media/iot-hub-how-to-order-connection-state-events/cosmosDB-search.png" alt-text="Screenshot of the search for Azure Cosmos DB." lightbox="media/iot-hub-how-to-order-connection-state-events/cosmosDB-search.png":::
135135

136-
1. Fill in **cosmosdb-connection** for the **Connection Name** and choose an [authentication type](/azure/connectors/connectors-create-api-cosmos-db?tabs=consumption.md#connect-to-azure-cosmos-db), then select **Create**.
137-
138-
1. You see the **Execute stored procedure (V3)** panel. Enter the values for the fields:
136+
1. You see the **Create or update document (V3)** panel. Enter these values for the fields:
139137

140138
**Azure Cosmos DB account name**: {Add your account name}
141139

@@ -239,7 +237,7 @@ You have now run a sample application to collect sensor data and send it to your
239237

240238
### Observe events in Cosmos DB
241239

242-
You can see results of the executed stored procedure in your Cosmos DB document. Here's what it looks like. Each row contains the latest device connection state per device.
240+
You can see results of the executed stored procedure in your Cosmos DB document. The query **SELECT * FROM d** shows the document. Each row contains the latest device connection state per device.
243241

244242
![How to outcome](./media/iot-hub-how-to-order-connection-state-events/cosmosDB-outcome.png)
245243

5.28 KB
Loading
-20.7 KB
Loading

0 commit comments

Comments
 (0)