how to create swu file for azure device update?

Mukhopadhyay, Sugato 35 Reputation points

my requirements need me to provide OS updates for a Ubuntu based IOT device on iothub, I am planning to use the device update feature in iothub, but from the documentation it seems we need a .swu file to upload in the storage container which we will import as an update later in the Device Update page, my question is how to generate the .swu file for the update.

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
497 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,019 questions
0 comments No comments
{count} vote

Accepted answer
  1. LeelaRajeshSayana-MSFT 10,001 Reputation points

    Hi @Mukhopadhyay, Sugato Greetings! Welcome to Microsoft Q&A forum. Thank you for posting the question here.

    The SWU file you are referring is only mandated for Delta updates feature in Device update for IoT Hub. Delta updates allow you to generate a small update that represents only the changes between two full updates - a source image and a target image. This approach is ideal for reducing the bandwidth used to download an update to a device, particularly if there have been only a few changes between the source and target updates.

    You can generate the Delta updates files using the DiffGen tool code repository. Please refer the section Generate delta updates using the DiffGen tool form more details on this.

    Please note that, in addition to the Delta updates feature, Device Update for Azure IoT Hub supports image-based, package-based, and script-based updates. The following articles will help you as a reference guide on how to achieve this updates.

    The above two approaches use JSON file to formulate a template needed for the device updates.

    Hope this helps! Please let us know if you have additional questions in the comments below and we would be glad to help you further.

    If the response helped, please do click Accept Answer and Yes for the answer provided. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.

0 additional answers

Sort by: Most helpful