Azure / azure-iot-sdk-node

A Node.js SDK for connecting devices to Microsoft Azure IoT services
https://docs.microsoft.com/en-us/azure/iot-hub/
Other
261 stars 227 forks source link

Get device created time. #988

Closed KSahu closed 3 years ago

KSahu commented 3 years ago

I am looking for a way to get device creation date for a device on iothub but currently Registry.get(deviceId) doesn't seem to return this data. Is there a way by which i can get this information ?

anthonyvercolano commented 3 years ago

Live Cycle notifications could be used to capture the time the device is created. Identity Registry

I do not believe that there is a creation date available in the identity registry.

KSahu commented 3 years ago

I think then this information should be persisted within device identity, as these are useful for analytics. We already have few devices in production few of which were created directly on iothub using symetric key and few through DPS. For devices registered through DPS, we could still get creation/registration date but the ones registered directly there is no way now to gather analytics for those.

anthonyvercolano commented 3 years ago

@KSahu I would suggest that you add this request via User Voice.

anthonyvercolano commented 3 years ago

Closing due to inactivity.