Closed mahdighorbanpourptw closed 4 weeks ago
This may be a bug on us correctly surfacing the value from the twin. I have filed a bug internally to investigate and address this.
This should be fixed now, you should no longer see the incorrect behavior
Issue should be fixed now
Library name and version
Azure.IoT.DeviceUpdate 1.0.0
Describe the bug
Hi, I am using Azure.IoT.DeviceUpdate version 1.0.0 in my C# project. I am using Azure device update service (Agent) on Ubuntu 22.04 and assigned an update to my device. The update is failing and I checked the deviceUpdateAgent logs under /var/log/adu. In the log files the extendedResultCode is written like following:
At the same time, on the IotHub->Edge ->MyDevice -> Modules -> IoTHubDeviceUpdate -> ModuleIdentityTwin -> Reportedproperties the same extendedResultCode is there!
However, the extendedResultCode is always null when I use the following method in C# and also on the Azure-Portal.
Expected behavior
It should return the reported extendedResultCodes in the json response
Actual behavior
extendedResultCode is always null
Reproduction Steps
Create an update with script step. make the script fail with a specific non-zero exit code assign the update to your device
Environment
Ubuntu 22.04 aziot-edge: 1.4.33-1 deviceupdate-agent: 1.1.0
This is a duplicate of https://github.com/Azure/azure-sdk-for-net/issues/43469