A Stream Analytics job is an event processing engine designed to analyze and process streaming data from multiple sources simultaneously. You can collect source data from Azure IoT Hub, Azure Event Hubs, and Azure Blob Storage. In this post, we'll show you how to send data from IoT Hub to Azure Stream Analytics job and store the results in Blob Storage.Getting started with Azure IoT Hub(2)
1.Azure Stream Analytics-Create
▷In the Azure portal, search for and select a stream analytics job.
▷Name the job, specify the subscription, resource group, location, etc. and select Cloud for the hosting environment.
2. Create Blob Storage
Create Blob Storage to store the results of your work.
▷ Add a storage account.
▷ In the created storage account, click Blob Service > Containers.
▷ Create a container with a public access level of Blob.
3.Input and output settings
▷ From the Stream analytics action menu, select Input, and click +Add stream input to select IoT Hub.
▷ Enter the input alias as INPUT, and associate it with the IoT Hub you created earlier.Set up inputs and outputs
▷ From the Stream Analytics action menu, select Output, and then click +Add to select Blob Storage.
▷ Enter OUTPUT as the output alias, and select the storage account and container you created earlier.
★Note: The list of output destinations you can set is as follows
4. modify the query
▷Select Query from the Stream Analytics Actions menu, and modify the query statement. Enter the output alias and input alias under INTO and FROM, respectively.
▷ start a stream analysis job.
▷View the results. The results are saved as a JSON file in the encoding format you specified.Select Query from the Stream Analytics job menu, and modify the query statement. Enter the output alias and input alias under INTO and FROM, respectively.
You've seen a simple way to create a stream analytics job. You can specify Power BI or a Service Bus queue as the output, and you can work with it to visualize data or apply bulk alarms for specific messages. You can also make multiple events happen in chronological order.
In the next post, you'll learn how to set up routing from IoT Hub to Service Bus and set up mail alarms using the Logic app.
'🐳Azure' 카테고리의 다른 글
Getting Started with Azure IoT Hub -3 (2) | 2025.09.10 |
---|---|
Getting started with Azure IoT Hub (1) (6) | 2025.06.24 |
Azure AD Cloud Provisioning (0) | 2025.06.17 |
Controlling resource access with Azure AD Identity Governance (1) | 2025.05.19 |
The uncomfortable truth about data file size and IOPS in Azure SQL (4) | 2025.05.18 |