Skip to content

Commit da316f5

Browse files
committed
Review, edit, screenshots, Acrolynx, Learn Linter
1 parent edf7d82 commit da316f5

8 files changed

+19
-16
lines changed
6.83 KB
Loading
Loading
Loading
Loading
Loading
Loading
Loading

articles/stream-analytics/stream-analytics-get-started-with-azure-stream-analytics-to-process-data-from-iot-devices.md

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
---
2-
title: Process real-time IoT data streams with Azure Stream Analytics
3-
description: IoT sensor tags and data streams with stream analytics and real-time data processing
2+
title: Process real-time IoT data streams
3+
description: Shows you how to create stream processing logic to gather data from Internet of Things (IoT) devices. It uses a real-world IoT use case to demonstrate.
44
author: AliciaLiMicrosoft
55
ms.author: ali
66
ms.service: azure-stream-analytics
77
ms.topic: how-to
8-
ms.date: 08/15/2023
8+
ms.date: 01/23/2025
9+
# Customer intent: I want to learn how to process real-time IoT data streams with Azure Stream Analytics.
910
---
1011
# Process real-time IoT data streams with Azure Stream Analytics
1112

12-
In this article, you learn how to create stream-processing logic to gather data from Internet of Things (IoT) devices. You use a real-world Internet of Things (IoT) use case to demonstrate how to build your solution quickly and economically.
13+
In this article, you learn how to create stream-processing logic to gather data from Internet of Things (IoT) devices. You use a real-world IoT use case to demonstrate how to build your solution quickly and economically.
1314

1415
## Prerequisites
1516

@@ -57,7 +58,18 @@ After your job is created, write a query. You can test queries against sample da
5758

5859
1. Download the [HelloWorldASA-InputStream.json](https://github.com/Azure/azure-stream-analytics/blob/master/Samples/GettingStarted/HelloWorldASA-InputStream.json) from GitHub.
5960
1. On the **Azure Stream Analytics job** page in the Azure portal, select **Query** under **Job topology** from the left menu.
60-
1. Select **Upload sample input**, select the `HelloWorldASA-InputStream.json` file you downloaded, and select **OK**.
61+
1. In the **Query** window, enter the following query.
62+
63+
```sql
64+
SELECT
65+
*
66+
INTO
67+
youroutputalias
68+
FROM
69+
yourinputalias
70+
```
71+
72+
1. In the bottom pane, select **Upload sample input**, select the `HelloWorldASA-InputStream.json` file you downloaded, and select **OK**.
6173

6274
:::image type="content" source="./media/stream-analytics-get-started-with-iot-devices/stream-analytics-get-started-with-iot-devices-05.png" alt-text="Screenshot that shows the **Query** page with **Upload sample input** selected." lightbox="./media/stream-analytics-get-started-with-iot-devices/stream-analytics-get-started-with-iot-devices-05.png":::
6375
1. Notice that a preview of the data is automatically populated in the **Input preview** table.
@@ -68,16 +80,7 @@ After your job is created, write a query. You can test queries against sample da
6880

6981
The simplest form of query is a pass-through query that archives all input data to its designated output. This query is the default query populated in a new Azure Stream Analytics job.
7082

71-
1. In the **Query** window, enter the following query, and then select **Test query** on the toolbar.
72-
73-
```sql
74-
SELECT
75-
*
76-
INTO
77-
youroutputalias
78-
FROM
79-
yourinputalias
80-
```
83+
1. Select **Test query** on the toolbar.
8184
2. View the results in the **Test results** tab in the bottom pane.
8285

8386
:::image type="content" source="./media/stream-analytics-get-started-with-iot-devices/stream-analytics-get-started-with-iot-devices-07.png" alt-text="Screenshot that shows the sample query and its results.":::
@@ -153,7 +156,7 @@ How can we write a query to find a lack of input events? Let's find the last tim
153156
:::image type="content" source="./media/stream-analytics-get-started-with-iot-devices/stream-analytics-get-started-with-iot-devices-11.png" alt-text="Screenshot that shows the query that detects absence of events.":::
154157

155158

156-
Here we use a **LEFT OUTER** join to the same data stream (self-join). For an **INNER** join, a result is returned only when a match is found. For a **LEFT OUTER** join, if an event from the left side of the join is unmatched, a row that has NULL for all the columns of the right side is returned. This technique is useful to find an absence of events. For more information, see [JOIN](/stream-analytics-query/join-azure-stream-analytics).
159+
Here we use a **LEFT OUTER** join to the same data stream (self-join). For an **INNER** join, a result is returned only when a match is found. For a **LEFT OUTER** join, if an event from the left side of the join is unmatched, a row that has NULL for all the columns of the right side is returned. This technique is useful to find an absence of events. For more information, see [JOIN](/stream-analytics-query/join-azure-stream-analytics).
157160

158161
## Conclusion
159162

0 commit comments

Comments
 (0)