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.
Sign in to answer this question.
Vikas SinghPosted May 28, 2024, 6:08 AM
@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}
Tuhin PaulPosted May 30, 2024, 6:47 PM
You can route messages from multiple devices to a single blob storage container.
You can create a storage endpoint using following steps:
Tuhin PaulPosted May 30, 2024, 6:46 PM
Azure IoT Hub message routing allows you to efficiently distribute telemetry data from various devices to designated Azure services.
Abhishek ChadhaPosted May 28, 2024, 5:54 AM
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.