Azure / iot-edge-v1

Azure IoT Edge
http://azure.github.io/iot-edge/
Other
524 stars 258 forks source link

[V2] Array Object Support in ModuleTwin #593

Closed matsujirushi closed 6 years ago

matsujirushi commented 6 years ago

Hi, When I set array object to module twin's desired properties, got below message:

Failed To Set Modules
BadRequest:{
 "Message": "ErrorCode:ArgumentInvalid;Provided json is not a valid 'tags' or 'properties' object: arrays are not supported."

I want to set leaf-device id's to module using module twin. So, do you have plan to implement that feature?

varunpuranik commented 6 years ago

Hi Matsujirushi,

Yes, currently arrays are not supported in twin desired properties, as explained here - https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-device-twins#tags-and-properties-format. Currently there is no plan to add support for arrays.

Thanks, Varun

v-tbert commented 6 years ago

What is the rationale for the various limitations like no arrays? This ends up being very limiting because you can't properly represent a device as a twin properly.

darobs commented 6 years ago

Hello @v-tbert

You may want to provide feedback to the IoT Hub Team.

Specific use cases always help our team determine the need and priority of IoTHub features.

ChrisGMsft commented 6 years ago

Please submit your vote on UserVoice. It would be great if you could also leave a comment on the exact content you'd like to put into the array.

https://feedback.azure.com/forums/321918-azure-iot/suggestions/20162305-support-arrays-for-tags-in-device-twins#comments