How do I route and append iot hub messages into a csv stored in blob storage

Sydney 31 Reputation points
2020-06-30T11:47:13.617+00:00

Hi experts
What would you recommend as a method to send messages from iot hub and append them into an existing csv file in Blob Storage?

Thanks in advance!

Azure IoT Hub
Azure IoT Hub

An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.


2 answers

Sort by: Oldest
  1. AshokPeddakotla-MSFT 35,346 Reputation points Moderator
    2020-06-30T14:43:03.423+00:00

    @Sydney Welcome to Q&A forum.

    Please elaborate your query bit more to understand better.
    Have you already configured the routing? Are you following any documentation for the steps?

    The data can be written to blob storage in either the Apache Avro format, which is the default, or JSON (preview).

    Please note that, IoT Hub supports writing data to Azure Storage in the Apache Avro format as well as in JSON format. The default is AVRO. The encoding format can be only set when the blob storage endpoint is configured. The format cannot be edited for an existing endpoint. When using JSON encoding, you must set the contentType to application/json and contentEncoding to UTF-8 in the message system properties. Both of these values are case-insensitive. If the content encoding is not set, then IoT Hub will write the messages in base 64 encoded format.

    I would recommend you to check the Configure IoT Hub message routing and Routing messages to blob storage and see if it helps to understand the routing endpoints.

    Was this answer helpful?


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    2 deleted comments

    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.