I want to setup mutiple devices in single blob storage container using iot hub message routing, please help
Loading
I want to setup mutiple devices in single blob storage container using iot hub message routing, please help
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vikas SinghRank #441 · 5.7K reputationPosted May 28, 2024, 2:08 AM EDT
@Suresh, You can achieve this by partitioning like below-
Go to message routing and add route then you will get below screen-
{iothub}/{plantname}/{devicename}/{YYYY}/{MM}/{DD}/{HH}/{mm}
Abhishek ChadhaRank #402 · 6.2K reputationPosted May 28, 2024, 1:54 AM EDT
Setting up multiple devices in a single blob storage container using Azure IoT Hub message routing involves several steps. Below is a high-level guide to achieve this:
1. Set up Azure IoT Hub:
- Create an Azure IoT Hub instance in the Azure portal.
- Register your IoT devices with the IoT Hub. Each device should have a unique identifier.
2. Set up Blob Storage:
- Create a blob storage account in the Azure portal.
- Create a blob container within the storage account where you want to store the data from your IoT devices.
3. Set up IoT Hub Message Routing:
- Navigate to your Azure IoT Hub instance in the Azure portal.
- Go to the "Message routing" section under "Messaging".
- Create a new route.
- Define the query for the route to filter messages from the desired devices. For example, you can filter messages based on device properties like device ID or device type.
- Set the endpoint of the route to your blob storage container.
4. Configure IoT Devices:
- Configure your IoT devices to send telemetry data to the IoT Hub.
- Ensure that each device sends data with appropriate device identifiers that match the routing query.
5. Test:
- Send some test data from your IoT devices to the IoT Hub.
- Verify that the data is routed to the correct blob storage container based on your routing rules.
6. Monitoring and Maintenance:
- Regularly monitor your IoT Hub and blob storage for incoming data and storage usage.
- Adjust your routing rules as needed based on changes in device configurations or data requirements.
By following these steps, you can set up multiple devices to send data to a single blob storage container using Azure IoT Hub message routing.
Tuhin PaulRank #7 · 71.9K reputationPosted May 30, 2024, 2:46 PM EDT
Azure IoT Hub message routing allows you to efficiently distribute telemetry data from various devices to designated Azure services.
Tuhin PaulRank #7 · 71.9K reputationPosted May 30, 2024, 2:47 PM EDT
You can route messages from multiple devices to a single blob storage container.
You can create a storage endpoint using following steps: