Import an update to Azure Device Update for IoT Hub

To deploy an update to devices using Azure Device Update for IoT Hub, you first import the update files into the Device Update service, which stores the imported update for deployment to devices. In this article, you learn how to import an update into the Device Update service by using the Azure portal, Azure CLI, or Device Update APIs.

Prerequisites

  • Supported browsers Microsoft Edge or Google Chrome.

Import an update

This section shows how to import an update using either the Azure portal or the Azure CLI. You can also import an update by using the Device Update APIs instead.

To import an update, you first upload the update and import manifest files into an Azure Storage container. Then, you import the update from Azure Storage into Device Update for IoT Hub, which stores it for deployment to devices.

  1. In the Azure portal, on the IoT hub page for your Device Update instance, select Device management > Updates from the left navigation.

    Screenshot that shows Import updates.

  2. On the Updates page, select Import a new update.

    Screenshot that shows Import a new update.

  3. On the Import update page, select Select from storage container.

  4. On the Storage accounts page, select an existing storage account or create a new account by selecting Storage account. You use the storage account for a container to stage the update files.

  5. On the Containers page, select an existing container or create a new container by selecting Container. You use the container to stage the update files for import.

    Screenshot that shows Storage accounts and Containers.

    Tip

    Using a new container each time you import an update helps prevent accidentally importing files from previous updates. If you don't use a new container, be sure to delete any previous files from the existing container.

  6. On the container page, select Upload.

    Screenshot that shows select Upload.

  7. On the Upload blob screen, select the folder icon next to the Files. Use the file picker to navigate to the location of your update and import manifest files, select the files, and then select Open. You can use the Shift key to multiselect files.

    Screenshot that shows selecting files to upload.

  8. After you select all the files, select Upload.

    Screenshot that shows selecting Upload.

  9. After they upload, the files appear on the container page. On the container page, review and select the files to import, and then select Select.

    Screenshot that shows selecting uploaded files.

  10. On the Import update screen, select Import update.

    Screenshot that shows Import update.

The import process begins, and the screen switches to the Updates screen. After the import succeeds, it appears on the Updates tab. To resolve any errors, see Proxy update troubleshooting.

Screenshot that shows job status.

Import using the Device Update APIs

You can also import an update programmatically by using any of the following methods:

Note

See Device Update user roles and access for required API permission.

The update files and import manifest must be uploaded to an Azure Storage Blob container for staging. To import the staged files, provide the blob URL, or shared access signature (SAS) for private blobs, to the Device Update API. If using a SAS, be sure to provide an expiration window of three hours or more.

Tip

To upload large update files to an Azure Storage Blob container, you can use one of the following methods for better performance: