I have an IoT device that sends data in a binary format to an IoT Hub.
From there, I need to store the data in Cosmos DB, after presumably converting it to JSON format.
My idea has been to set up an Azure Function with an IoT Hub trigger and a Cosmos DB output. The function code itself would handle the data conversion.
Does this seem like an appropriate approach? I was going to use a Cosmos DB Table but saw somewhere that the Function App output bindings only support the SQL API, is that true?
For reference, I have a JavaScript code to convert from binary to JSON, and my IoT hub is successfully receiving the device messages and triggering the Function App.
Any help is greatly appreciated,
Thank you