Azure IoT hub routing to storage account Add Device ID to file path

Saltzmann, Eric 1 Reputation point

Is it possible to add the device id as part of the file path for a storage account endpoint? I didn't find any additional parameters that are available to use with the file path format.


Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
695 questions
{count} votes

1 answer

Sort by: Most helpful
  1. LeelaRajeshSayana-MSFT 976 Reputation points

    Hi @Saltzmann, Eric , Welcome to Micrsoft Q&A forum! Thank you for posting this question.

    Azure IoT Hub routing for storage accounts currently does support passing in Device ID parameter dynamically. There is a product request created for this feature in the past. You can view the request using the following URL -- Include device id in file name format as parameter. Please upvote the feature request.

    Even though we cannot add the Device ID dynamically, we can add device names as statics strings in the file name format and can bind this custom end point to a route. Please refer the below image


    If you are okay with choosing a different end point, Azure Cosmos DB routing end point (currently offered as preview) supports creation of partition key items based on device ID. Please refer the below image for details


    Please let me know if the above shared information is useful.


    • Kindly accept answer or upvote if the response is helpful so that it would benefit other community members facing the same issue.
    • Original posters help the community find answers faster by identifying the correct answer. Here is how
    • I highly appreciate your contribution to the community.
    No comments