Rediger

Del via


Deploy an update by using Azure Device Update for IoT Hub

In this article, you learn how to deploy an update to IoT devices by using Azure Device Update for IoT Hub in the Azure portal or with Azure CLI.

Prerequisites

Deploy the update

This section describes how to deploy the update by using the Azure portal or Azure CLI.

  1. In the Azure portal, navigate to your IoT hub.

  2. Select Updates under Device management in the left navigation.

    Screenshot that shows the Get started with the Device Update for IoT Hub page.

  3. On the Updates page, select the Groups and Deployments tab and view the update compliance chart and device group list. You might need to refresh the view to see recently imported updates available for your device group.

  4. Under Status in the group list, select Deploy next to One or more new updates are available for this group.

    Screenshot of the compliance view for Groups and Deployments.

  5. View the update compliance chart and group list. You should see a new update available for your tag based or default group. You might need to refresh once. For more information, see Device Update compliance.

  6. Select Deploy next to the one or more updates available status.

  7. From the list on the right, select the desired update to deploy.

    Screenshot of the deployment view for selecting updates.

  8. Schedule your deployment to start immediately or in the future.

    Tip

    By default, the Start date and time is 24 hours from your current time. Be sure to select a different date and time if you want the deployment to begin sooner or later.

    Screenshot that shows the Create deployment screen

  9. Create an automatic rollback policy if needed. Then select Create.

  10. In the Current updates tab, you can view the status of your deployment.

    A screenshot of the Current updates view.

  11. In the Group basics view, the compliance chart shows that the update is now in progress.

    After your device successfully updates, your compliance chart and deployment details update to reflect that status.

Monitor deployment status

  1. On the Groups and Deployments tab of the Updates page, select the group you deployed to.

  2. On the Group details page, go to the Current deployment or Deployment history tab to confirm that a deployment is in progress.

    Screenshot that shows the Deployment history tab.

  3. Select Details next to a deployment to view the deployment details, update details, and target device class details. You can optionally add a friendly name for the device class.

  4. Select Refresh to view the latest status details.

    Screenshot that shows deployment details.

Go to the Group basics tab of the Group details page to search for the status of a particular device, or filter to view devices that failed the deployment.

Retry an update deployment

If your deployment fails, you can retry the deployment for failed devices.

  1. Go to the Current deployment tab on the Group details screen.

  2. Select Retry failed devices and acknowledge the confirmation notification.