Device Update for IoT Hub device failing when using script handler.

Sriyuta Srivastava 10 Reputation points
2023-07-20T11:08:14.84+00:00

New Update :

I was able to get the exact reason for the extended result code. Had to update the script as per the

example script .

All the steps seem to working except for the actual installation. Here is a snippet of my InstallUpdate() function (gets executed on passing the --action-install flag).

User's image

As you can see I am trying to run a dpkg -i for some deb packages.

On running the script locally with the following flags the below mentioned output is seenUser's image

In short, the update takes place and upgrades the package from 0.0.5 -> 0.0.6.

But while trying to run the same via Azure IoT Hub device updates the following logs are seen for script handler.

User's image

As seen clearly, no logs are generated. What could be the possible reason for this?


While trying to deploy an update which uses a script handler, the deployment fails with the ExtendedResultCode = 810549253.

User's image

As per the documentation, the equivalent unsigned hex (in this case, 30500005) should be of the format F FFFFFF where the first nibble is the Facility Code and the rest of the bits are the Error Code. Refer to the table below for available Facility Code values : User's image

In this case, the corresponding unsigned hex is 30500005. As per the format, our Facility Code is coming as 3.

Any ideas on how to debug the failure of this update?


Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
371 questions
Azure IoT Plug and Play
Azure IoT Plug and Play
A Microsoft technology based on an open modeling language that enables developers to connect internet of things (IoT) devices to the cloud without having to write any code.
15 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,083 questions
Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
187 questions
{count} vote