Where is my sensor data being stored in the IoT Hub?

OMEP IoT Developer 41 Reputation points
2021-03-25T19:14:14.083+00:00

Context: I am sending temp/humidity data from a sensor, through a gateway device to azure which is supposedly being stored in the IoT Hub.

Problem: Where is this data? I can access it through the device twin & also see it being sent via the Azure CLI, but the data logged in the IoT Hub only conveys information about the gateway message itself, not the actual data.

Can this information only be accessed via another service?

Looking for clarification, tips/tricks. Thanks!

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
378 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,115 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sander van de Velde 28,311 Reputation points MVP
    2021-03-25T22:02:53.403+00:00

    @OMEP IoT Developer ,

    as seen in the documentation, "IoT Hub is a managed service, hosted in the cloud, that acts as a central message hub for bi-directional communication between your IoT application and the devices it manages.".

    It's a message hub that outputs incoming messages to other Azure resources which are subscribed to certain messages.

    The IoT Hub can support eg. Azure Storage, Azure Stream Analytics, or Azure Functions.

    Azure Storage is great for cool or cold storage, just put all raw data over there for later analysis by a data scientist.

    So yes, you need to pick up the messages yourself and put them into a SqlAzure database or show it in Power BI or run a global Website that uses Cosmos DB data that you routed into there.

    Under the hood, there is some kind of storage, but only as internal, temporary storage until messages are picked up (incoming messages have a Time-To-Live for up to 7 days).

    I recommend the MS Learn Introduction to Azure IoT learning path which looks into this more closely.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful