Updating a module twin results in a new 'unknown' update with the old values.
Steps to reproduce:
create an automatic deployment based on a tag.
deployment.template.json
contains"mymodule": { "properties.desired": { "telemetryTakeCount": 100 } }
update the module twin via the cli:
az iot hub module-twin update -n myiothub -d mydevice -m mymodule--set properties.desired.telemetryTakeCount=126
module twin update is received by the module
[May 15 10:51:31]dbug: MyProject.AzureIotHubMethodHandlers[0] Desired property change: { "telemetryTakeCount": 126, "$version": 139 }
- Afer about 25 seconds a new module update is received, with the old values.
[May 15 10:51:59]dbug: MyProject.AzureIotHubMethodHandlers[0] Desired property change: { "telemetryTakeCount": 100, "$version": 140 }
Why is this happing? As far is I know, I did not start a new update. This also happens when I update the module twin via the Azure Portal.
IotEdge version 1.0.9
The module twin retrieved after the last update, shows that $lastUpdatedBy is set to the last deployment. For all properties, not only the one I updated. Could this be related, that the deployment gets in the way?