Character limitation of DeviceID in azure iot hub.

Category: azure time series insights

Question

Manu.M Mohanan on Tue, 24 Sep 2019 09:47:53


I would likes to use a 12 alphanumeric characters in CAPS for the device id of the edge. I have also configured the TSI. Is there any character limitations for JSON input fields from edge device.?

Sample JSON would be something like as follows.

{

"DeviceID ": "ASDFGHJKLOIU",

"key1" : "value1",

"key2" : "value2",

"key3" : "value3",

"key4" : "value4" etc..

}

Is there any thing should be concerned for the 12 alphanumeric characters in CAPS for the DeviceID.?

Replies

Alberto Vega (Azure) on Wed, 25 Sep 2019 00:16:53


Hi

DeviceId: A case-sensitive string (up to 128 characters long) of ASCII 7-bit alphanumeric characters plus certain special characters: - . + % _ # * ? ! ( ) , = @ $ '.

please read these documents if you haven't yet 

https://github.com/MicrosoftDocs/azure-docs/blob/master/includes/iot-hub-limits.md

 Create and Read IoT Hub Messages

https://docs.microsoft.com/en-us/azure/time-series-insights/time-series-insights-update-how-to-id