My layered deployment (single module) properties read as follows:
"properties": {
"desired": {
"PublishInterval": 2000,
"OtherProperty": 1
"layeredProperties": {}
}
},
...
After the deployment is applied I would like to add a custom property on some of the devices using the Azure portal, so the result might look like so:
"properties": {
"desired": {
"PublishInterval": 2000,
"OtherProperty": 1
"layeredProperties": {
"instance-specific-property": 4000
}
}
},
...
A few minutes later this property gets reverted back and we end up with an empty layeredProperties
collection.
Following up on similar questions asked here and here Im starting to think that it is not possible to do this at all and if one needs some specific properties on devices there should be a layered deployment created for that.
Is there really no way of updating a module's twin desired properties but using a deployment? Seems like an overkill.