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/stream-analytics/stream-analytics-get-started-with-azure-stream-analytics-to-process-data-from-iot-devices.md
+19-16Lines changed: 19 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,16 @@
1
1
---
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.
4
4
author: AliciaLiMicrosoft
5
5
ms.author: ali
6
6
ms.service: azure-stream-analytics
7
7
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.
9
10
---
10
11
# Process real-time IoT data streams with Azure Stream Analytics
11
12
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.
13
14
14
15
## Prerequisites
15
16
@@ -57,7 +58,18 @@ After your job is created, write a query. You can test queries against sample da
57
58
58
59
1. Download the [HelloWorldASA-InputStream.json](https://github.com/Azure/azure-stream-analytics/blob/master/Samples/GettingStarted/HelloWorldASA-InputStream.json) from GitHub.
59
60
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, andselect**OK**.
61
73
62
74
:::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":::
63
75
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
68
80
69
81
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.
70
82
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.
81
84
2. View the results in the **Test results** tab in the bottom pane.
82
85
83
86
:::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
153
156
:::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.":::
154
157
155
158
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).
0 commit comments