-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Labels
Description
az iot central device-template create does not accept DTDL v2 interfaces
To Reproduce
Install the latest with az extension remove azure-iot && az extension add azure-iot
Follow the reference docs to create a device template
Use the next DTDL v2 Model as the input file
{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:com:example:basic;1",
"@type": "Interface",
"displayName": "basic",
"contents": [
{
"@type": "Telemetry",
"name": "temperature",
"schema": "double"
}
]
}Expected behavior
A device template is added to my central app
Observed behavior
{'code': 'InvalidBody',
'message': "The provided request body contains the following errors:
should have required property 'capabilityModel';
['@type'] should be array.
Environment (please complete the following information):
C:\code> az --version
azure-cli 2.19.1 *
core 2.19.1 *
telemetry 1.0.6
Extensions:
azure-iot 0.10.13
interactive 0.4.4
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\rido2\.azure\cliextensions'
Python (Windows) 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)]
Reactions are currently unavailable