Time Series Insights <-> Iot Hub Connection - Using DeviceId as Time Series ID

KileD951 126 Reputation points
2021-05-12T19:32:05.113+00:00

Hello,

I am looking to use Time Series Insights to accept data from an IoT Hub, with the time series ID set to the deviceId that is embedded in IoT Hub events (not present in the JSON message body).

I've tried several ways of encoding this key when specifying the time series ID, attempting to follow the JSON flattening rules. I have tried all of these below, but I still end up seeing the device as 'null' in TSI Explorer.

deviceId
connectionDeviceId
IoTHub.connectionDeviceId
SystemProperties.connectionDeviceId (this is what comes back when using the API to read the data files from blob storage)
$event.SystemProperties.connectionDeviceId

I have perused all the documentation on this topic and it seems the most basic use case for connecting these two services is not specified. Perhaps I've missed something.

Thank you.

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,115 questions
Azure Time Series Insights
Azure Time Series Insights
An Azure internet of things (IoT) analytics platform to monitor, analyze, and visualize industrial IoT analytics data at scale.
75 questions
{count} votes

Accepted answer
  1. António Sérgio Azevedo 7,661 Reputation points Microsoft Employee
    2021-05-26T22:26:45.38+00:00

    Hello @KileD951 ,
    I have confirmed that you would need to use iothub-connection-device-id as TSI ID like documented here:

    Tutorial: Set up an Azure Time Series Insights Gen2 environment

    99930-image.png

    Please share with us your feedback to improve documentation.
    Thank you so much!

    Remember:

    • Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification.

0 additional answers

Sort by: Most helpful