How to create azure device update import manifest file using c#

Gupta, Priyanka 21 Reputation points

I am trying to migrate adu to PPR version 1.0.0-beta.3. Since this involves certain changes in the defined classes, need to know how to create Iot Hub adu ImportManifest file programmatically using c#

Azure IoT SDK
Azure IoT SDK
An Azure software development kit that facilitates building applications that connect to Azure IoT services.
211 questions
0 comments No comments
{count} votes

Accepted answer
  1. António Sérgio Azevedo 7,666 Reputation points Microsoft Employee

    Hello @Gupta, Priyanka ,

    Have you tried using Azure Device Update for IoT Hub client library for .NET ?

    To learn how to import a new update using C#, you can check ImportUpdate sample.

    The class ContentFactory.cs guides us on how to create an import manifest file programatically

    /// <summary>  
            /// Creates import manifest file.  
            /// </summary>  
            /// <param name="manufacturer">The manufacturer.</param>  
            /// <param name="name">The name.</param>  
            /// <param name="version">The version.</param>  
            /// <param name="fileName">Filename of the file.</param>  
            /// <param name="fileSize">Size of the file.</param>  
            /// <param name="fileHash">The file hash.</param>  
            /// <returns>  
            /// The new import manifest file.  
            /// </returns>  
            public string CreateImportManifestContent(string manufacturer, string name, string version, string fileName, long fileSize, string fileHash)  


    • Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification.
    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful