Skip to content

Commit af752e5

Browse files
committed
clean up and acrolinx
1 parent ee62fa3 commit af752e5

File tree

2 files changed

+20
-36
lines changed

2 files changed

+20
-36
lines changed

articles/iot-hub/iot-hub-monitoring-notifications-with-azure-logic-apps.md

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: kgremban
77
ms.author: kgremban
88
ms.service: iot-hub
99
ms.topic: tutorial
10-
ms.date: 02/05/2024
10+
ms.date: 02/07/2024
1111
---
1212

1313
# Tutorial: Monitor IoT devices and send notifications with Azure Logic Apps
@@ -16,7 +16,7 @@ Use Azure Logic Apps to monitor incoming device telemetry from IoT Hub and send
1616

1717
![End-to-end diagram](media/iot-hub-monitoring-notifications-with-azure-logic-apps/iot-hub-e2e-logic-apps.png)
1818

19-
[Azure Logic Apps](../logic-apps/index.yml) can help you orchestrate workflows across on-premises and cloud services, multiple enterprises, and various protocols. A logic app begins with a trigger, which is then followed by one or more actions that can be sequenced using built-in controls, such as conditions and iterators. This flexibility makes Logic Apps an ideal IoT solution for IoT monitoring scenarios. For example, the arrival of telemetry data from a device at an IoT Hub endpoint can initiate logic app workflows to warehouse the data in an Azure Storage blob, send email alerts to warn of data anomalies, schedule a technician visit if a device reports a failure, and so on.
19+
[Azure Logic Apps](../logic-apps/index.yml) can help you orchestrate workflows across on-premises and cloud services, multiple enterprises, and various protocols. A logic app begins with a trigger, which is then followed by one or more actions that can be sequenced using built-in controls, such as conditions and iterators. This flexibility makes Logic Apps an ideal IoT solution for IoT monitoring scenarios. For example, the arrival of data from a device at an IoT Hub endpoint can initiate logic app workflows to warehouse the data in an Azure Storage blob, send email alerts to warn of data anomalies, schedule a technician visit if a device reports a failure, and so on.
2020

2121
In this tutorial, you perform the following tasks:
2222

@@ -99,25 +99,9 @@ Create a Service Bus namespace and queue. Later in this article, you create a ro
9999

100100
1. Copy the value of **Primary connection string** and save it to use later in this tutorial when you configure the logic app.
101101

102-
<!-- 1. Back on the **Service Bus Namespace** pane, select **Queues** from the **Entities** section of the resource menu. Then, select the queue that you just created from the list
103-
104-
:::image type="content" source="./media/iot-hub-monitoring-notifications-with-azure-logic-apps/queues-select-queue.png" alt-text="Screenshot that shows the list of queues in your namespace.":::
105-
106-
1. On the **Service Bus Queue** pane, select **Shared access policies** from the **Settings** section of the resource menu. Then, select **Add** to add a policy.
107-
108-
:::image type="content" source="./media/iot-hub-monitoring-notifications-with-azure-logic-apps/queue-shared-access-policies-add.png" alt-text="Screenshot that shows adding a shared access policy to a Service Bus queue.":::
109-
110-
1. In the **Policy name** field, provide a name for the policy. Check **Manage**, and then select **Create**.
111-
112-
:::image type="content" source="./media/iot-hub-monitoring-notifications-with-azure-logic-apps/add-sas-policy.png" alt-text="Screenshot that shows creating a shared access policy.":::
113-
114-
1. After your policy is created, select it from the list of policies to open the details.
115-
116-
1. Copy the value of the **Primary connection string** and save it to use later in this tutorial when you configure the logic app. -->
117-
118102
## Add a custom endpoint and routing rule to your IoT hub
119103

120-
Add a custom endpoint for the Service Bus queue to your IoT hub. Then, create a message routing rule to direct messages that contain a temperature alert to that endpoint, where they will be picked up by your logic app. The routing rule uses a routing query, `temperatureAlert = "true"`, to forward messages based on the value of the `temperatureAlert` application property set by the client code running on the device. To learn more, see [Message routing query based on message properties](./iot-hub-devguide-routing-query-syntax.md#query-based-on-message-properties).
104+
Add a custom endpoint for the Service Bus queue to your IoT hub. Then, create a message routing rule to direct messages that contain a temperature alert to that endpoint, where they're picked up by your logic app. The routing rule uses a routing query, `temperatureAlert = "true"`, to forward messages based on the value of the `temperatureAlert` application property set by the client code running on the device. To learn more, see [Message routing query based on message properties](./iot-hub-devguide-routing-query-syntax.md#query-based-on-message-properties).
121105

122106
### Add a custom endpoint and route
123107

@@ -167,7 +151,7 @@ In the preceding section, you set up your IoT hub to route messages containing a
167151
| Parameter | Value |
168152
| --------- | ----- |
169153
| **Resource group** | Select the same resource group that contains your IoT hub. |
170-
| **Name** | Provide a name for your the logic app. |
154+
| **Name** | Provide a name for your logic app. |
171155
| **Region** | Select a location close to you. |
172156
| **Plan type** | Select **Consumption**, which is sufficient for this tutorial. |
173157

@@ -256,7 +240,7 @@ In the preceding section, you set up your IoT hub to route messages containing a
256240
| **Subject** | `High temperature detected`. |
257241
| **Body** | `High temperature detected`. |
258242

259-
If the **Add dynamic content** dialog opens, select **Hide** to close it. You do not use dynamic content in this tutorial.
243+
If the **Add dynamic content** dialog opens, select **Hide** to close it. You don't use dynamic content in this tutorial.
260244

261245
![Provide details for SMTP connection email fields.](media/iot-hub-monitoring-notifications-with-azure-logic-apps/fill-in-smtp-connection-fields.png)
262246

@@ -270,7 +254,7 @@ In the preceding section, you set up your IoT hub to route messages containing a
270254

271255
1. On the **smtp API Connection** pane, under **General**, select **Edit API connection**.
272256

273-
1. On the **Edit API Connection** pane, select **Enable SSL?**, re-enter the password for your email account, and select **Save**.
257+
1. On the **Edit API Connection** pane, select **Enable SSL?**, reenter the password for your email account, and select **Save**.
274258

275259
![Edit SMTP API connection in your logic app in the Azure portal.](media/iot-hub-monitoring-notifications-with-azure-logic-apps/re-enable-smtp-connection-ssl.png)
276260

@@ -289,17 +273,17 @@ Start sending temperature messages from your IoT device to test the monitoring a
289273
290274
## Clean up resources
291275

292-
If you don't need the resources that you created in this tutorial any longer, delete it and the resource group in the portal. To do so, select the **tutorial-iot-hub-rg** resource group that contains your IoT hub and select **Delete**.
276+
If you don't need the resources that you created in this tutorial any longer, delete it and the resource group in the portal. To do so, select the resource group that contains your IoT hub and select **Delete**.
293277

294278
Alternatively, use the CLI:
295279

296280
```azurecli-interactive
297281
# Delete your resource group and its contents
298-
az group delete --name tutorial-iot-hub-rg
282+
az group delete --name <RESOURCE_GROUP_NAME>
299283
```
300284

301285
## Next steps
302286

303-
You have successfully created a logic app that connects your IoT hub and your mailbox for temperature monitoring and notifications.
287+
In this tutorial, you created a logic app that connects your IoT hub and your mailbox for temperature monitoring and notifications.
304288

305289
[!INCLUDE [iot-hub-get-started-next-steps](../../includes/iot-hub-get-started-next-steps.md)]

articles/iot-hub/iot-hub-raspberry-pi-kit-node-get-started.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Prepare the microSD card for installation of the Raspberry Pi OS image.
100100

101101
c. Select the microSD card drive. Etcher may have already selected the correct drive.
102102

103-
d. Click Flash to install Raspberry Pi OS with desktop to the microSD card.
103+
d. Select Flash to install Raspberry Pi OS with desktop to the microSD card.
104104

105105
e. Remove the microSD card from your computer when installation is complete. It's safe to remove the microSD card directly because Etcher automatically ejects or unmounts the microSD card upon completion.
106106

@@ -112,16 +112,16 @@ Prepare the microSD card for installation of the Raspberry Pi OS image.
112112

113113
2. Start Pi and then sign into Raspberry Pi OS by using `pi` as the user name and `raspberry` as the password.
114114

115-
3. Click the Raspberry icon > **Preferences** > **Raspberry Pi Configuration**.
115+
3. Select the Raspberry icon > **Preferences** > **Raspberry Pi Configuration**.
116116

117117
![The Raspberry Pi OS with Preferences menu](./media/iot-hub-raspberry-pi-kit-node-get-started/1-raspbian-preferences-menu.png)
118118

119-
4. On the **Interfaces** tab, set **SSH** and **I2C** to **Enable**, and then click **OK**.
119+
4. On the **Interfaces** tab, set **SSH** and **I2C** to **Enable**, and then select **OK**.
120120

121121
| Interface | Description |
122122
| --------- | ----------- |
123123
| *SSH* | Secure Shell (SSH) is used to remote into the Raspberry Pi with a remote command-line. This is the preferred method for issuing the commands to your Raspberry Pi remotely in this document. |
124-
| *I2C* | Inter-integrated Circuit (I2C) is a communications protocol used to interface with hardware such as sensors. This interface is required for interfacing with physical sensors in this topic.|
124+
| *I2C* | Inter-integrated Circuit (I2C) is a communications protocol used to interface with hardware such as sensors. This interface is required for interfacing with physical sensors in this article.|
125125

126126
If you don't have physical sensors and want to use simulated sensor data from your Raspberry Pi device, you can leave **I2C** disabled.
127127

@@ -142,14 +142,14 @@ For sensor pins, use the following wiring:
142142

143143
| Start (Sensor & LED) | End (Board) | Cable Color |
144144
| ----------------------- | ---------------------- | ------------: |
145-
| VDD (Pin 5G) | 3.3V PWR (Pin 1) | White cable |
145+
| VDD (Pin 5G) | 3.3 V PWR (Pin 1) | White cable |
146146
| GND (Pin 7G) | GND (Pin 6) | Brown cable |
147147
| SDI (Pin 10G) | I2C1 SDA (Pin 3) | Red cable |
148148
| SCK (Pin 8G) | I2C1 SCL (Pin 5) | Orange cable |
149149
| LED VDD (Pin 18F) | GPIO 24 (Pin 18) | White cable |
150150
| LED GND (Pin 17F) | GND (Pin 20) | Black cable |
151151

152-
Click to view [Raspberry Pi 2 & 3 pin mappings](/windows/iot-core/learn-about-hardware/pinmappings/pinmappingsrpi) for your reference.
152+
For more information, see [Raspberry Pi 2 & 3 pin mappings](/windows/iot-core/learn-about-hardware/pinmappings/pinmappingsrpi).
153153

154154
After you've successfully connected BME280 to your Raspberry Pi, it should be like below image.
155155

@@ -191,7 +191,7 @@ Turn on Pi by using the micro USB cable and the power supply. Use the Ethernet c
191191
node -v
192192
```
193193

194-
If the version is lower than 10.x, or if there is no Node.js on your Pi, install the latest version.
194+
If the version is lower than 10.x, or if Node.js isn't on your Pi, install the latest version.
195195

196196
```bash
197197
curl -sSL https://deb.nodesource.com/setup_16.x | sudo -E bash
@@ -255,14 +255,14 @@ For more ways to process data sent by your device, continue on to the next secti
255255

256256
## Clean up resources
257257

258-
You can use the resources created in this topic with other tutorials and quickstarts in this document set. If you plan to continue on to work with other quickstarts or with the tutorials, do not clean up the resources created in this topic. If you do not plan to continue, use the following steps to delete all resources created by this topic in the Azure portal.
258+
You can use the resources created in this article with other tutorials and quickstarts in this document set. If you plan to continue on to work with other quickstarts or with the tutorials, don't clean up the resources created in this article. If you don't plan to continue, use the following steps to delete all resources created by this article in the Azure portal.
259259

260260
1. From the left-hand menu in the Azure portal, select **All resources** and then select the IoT Hub you created.
261-
1. At the top of the IoT Hub overview pane, click **Delete**.
262-
1. Enter your hub name and click **Delete** again to confirm permanently deleting the IoT hub.
261+
1. At the top of the IoT Hub overview pane, select **Delete**.
262+
1. Enter your hub name and select **Delete** again to confirm permanently deleting the IoT hub.
263263

264264
## Next steps
265265

266-
You've run a sample application to collect sensor data and send it to your IoT hub.
266+
In this article, you ran a sample application to collect sensor data and send it to your IoT hub.
267267

268268
[!INCLUDE [iot-hub-get-started-next-steps](../../includes/iot-hub-get-started-next-steps.md)]

0 commit comments

Comments
 (0)