Hello @Saltzmann, Eric,
That's correct. The Azure IoT Hub routing for storage accounts doesn't currently support dynamically passing in the Device ID parameter as part of the file path. However, you can achieve this by using Azure Functions and Event Grid.
You can create an Azure Function that listens to the Event Grid events generated by the IoT Hub for device telemetry, and then process those events to extract the device ID and the telemetry data. You can then use the device ID to create the file path dynamically and write the telemetry data to the appropriate file.
Here's a high-level overview of the steps involved:
- Create an Azure Function that listens to the Event Grid events generated by the IoT Hub for device telemetry.
- In the Function code, extract the device ID and the telemetry data from the event.
- Use the device ID to create the file path dynamically, and write the telemetry data to the appropriate file.
- Configure the IoT Hub to route device telemetry to the Event Grid.
- Configure the Event Grid subscription to send device telemetry events to the Azure Function.
This approach provides more flexibility in terms of the file path format and enables you to process the telemetry data before writing it to the storage account.
Hi @Saltzmann, Eric , Greetings! I am following up to check if the response below has helped you with addressing the issue you face. Please upvote the feature request through the URL Include device id in file name format as parameter
----------