Overview of device management with IoT Hub

Azure IoT Hub provides the features and an extensibility model that enable device and back-end developers to build robust device management solutions. Devices range from constrained sensors and single purpose microcontrollers, to powerful gateways that route communications for groups of devices. Also, the use cases and requirements for IoT operators vary significantly across industries. Despite this variation, device management with IoT Hub provides the capabilities, patterns, and code libraries to cater to a diverse set of devices and end users.

Note

Some of the features mentioned in this article, like cloud-to-device messaging, device twins, and device management, are only available in the standard tier of IoT Hub. For more information about the basic and standard/free IoT Hub tiers, see Choose the right IoT Hub tier for your solution.

A crucial part of creating a successful enterprise IoT solution is to provide a strategy for how operators handle the ongoing management of their collection of devices. IoT operators require simple and reliable tools and applications that enable them to focus on the more strategic aspects of their jobs. This article provides:

  • A brief overview of Azure IoT Hub approach to device management.
  • A description of common device management principles.
  • A description of the device lifecycle.
  • An overview of common device management patterns.

Device lifecycle

General device management stages are common in most enterprise IoT projects. In Azure IoT, there are five stages within the device lifecycle:

The five Azure IoT device lifecycle phases: plan, provision, configure, monitor, retire

Within each of these five stages, there are several device operator requirements that should be fulfilled to provide a complete solution:

Device management patterns

IoT Hub enables the following set of device management patterns. The device management tutorials show you in more detail how to extend these patterns to fit your exact scenario and how to design new patterns based on these core templates.

  • Reboot: The back-end app informs the device through a direct method that it has started a reboot. The device uses the reported properties to update the reboot status of the device.

    Device management reboot pattern graphic

  • Factory Reset: The back-end app informs the device through a direct method that it has started a factory reset. The device uses the reported properties to update the factory reset status of the device.

    Device management factory reset pattern graphic

  • Configuration: The back-end app uses the desired properties to configure software running on the device. The device uses the reported properties to update configuration status of the device.

    Device management configuration pattern graphic

  • Reporting progress and status: The solution back end runs device twin queries, across a set of devices, to report on the status and progress of actions running on the devices.

    Device management reporting progress and status pattern graphic

Device Updates

Device Update for IoT Hub is a comprehensive platform that customers can use to publish, distribute, and manage over-the-air updates for everything from tiny sensors to gateway-level devices. Device Update for IoT Hub allows customers to rapidly respond to security threats and deploy features to meet business objectives without incurring more development and maintenance costs of building custom update platforms.

Device Update for IoT Hub offers optimized update deployment and streamlined operations through integration with Azure IoT Hub. With extended reach through Azure IoT Edge, it provides a cloud-hosted solution that connects virtually any device. It supports a broad range of IoT operating systems—including Linux and Azure RTOS (real-time operating system)—and is extensible via open source. Some features include:

  • Support for updating edge devices, including the host-level components of Azure IoT Edge
  • Update management UX integrated with Azure IoT Hub
  • Gradual update rollout through device grouping and update scheduling controls
  • Programmatic APIs to enable automation and custom portal experiences
  • At-a-glance update compliance and status views across heterogenous device fleets
  • Support for resilient device updates (A/B) to deliver seamless rollback
  • Content caching and disconnected device support, including those devices that are in nested configurations, through built-in Microsoft Connected Cache and integration with Azure IoT Edge
  • Subscription and role-based access controls available via the Azure portal
  • Comprehensive cloud-to-edge security features and privacy controls

For more information, see Device Update for IoT Hub.

Next Steps

The capabilities, patterns, and code libraries that IoT Hub provides for device management, enable you to create IoT applications that fulfill enterprise IoT operator requirements within each device lifecycle stage.

To continue learning about the device management features in IoT Hub, see Get started with device management (Node.js).