Recently I saw that in IoT Central app if I create a new Device Template, we get a Interface id in the format like this "dtmi:iosIotCentralApp:DeviceTestTemplate21i;1". And if I use this for DeviceProvisioning function as cmid then I am getting below error in Azure function "Please follow the schema if you want to pass __iot:interfaces section under data. Format: '__iot:interfaces':{'CapabilityModelId': urn:companyname:template:templatename:version, 'CapabilityModel': 'The inline contents of interfaces and capability model.'}"
If I manually create cmid in format (urn:companyname:template:templatename:version) Device is provisioned but not assigned to the specific Device Template.
I am using below API for registration in an Azure function
Are there any changes in API for Device provisioning or am I missing anything?