How to check Azure Device Update has successfully connected

Abigail Greentree 0 Reputation points
2024-05-29T20:06:00.0233333+00:00

I am using Azure Device Update agent version 1.1.0.

Is there a programmatic way to test is the update agent has successfully connected to the hub? I am looking to implement a fallback strategy that confirms the ADU agent has re-established a connection with IoT Hub before an update is considered successful.

Running /usr/bin/AducIotAgent --health-check does not work for this use case, because that appears to succeed if the agent starts and can retrieve a connection string -- but does not confirm a connection can be made (example, if the device no longer has any network connection - the health check will still succeed).

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
391 questions
0 comments No comments
{count} votes