Book Image

The Azure IoT Handbook

By : Dan Clark
Book Image

The Azure IoT Handbook

By: Dan Clark

Overview of this book

With the rise of cloud-based computing, deploying IoT systems has become more cost-effective for businesses. This transformation has led to developers and architects shouldering the responsibility of creating, managing, and securing these systems, even if they are new to the IoT technology. The Azure IoT Handbook is a comprehensive introduction to quickly bring you up to speed in this rapidly evolving landscape. Starting with the basic building blocks of any IoT system, this book guides you through mobile device management and data collection using an IoT hub. You’ll explore essential tools for system security and monitoring. Following data collection, you’ll delve into real-time data analytics using Azure Stream Analytics and view real-time streaming on a Power BI dashboard. Packed with real-world examples, this book covers common IoT use as well. By the end of this IoT book, you’ll know how to design and develop IoT solutions leveraging intelligent edge-to-cloud technologies implemented on Azure.
Table of Contents (18 chapters)
1
Part 1: Capturing Data from Remote Devices
7
Part 2: Processing the Data
12
Part 3: Processing the Data

Lab – provisioning devices using DPS

Let’s say you have a fleet of refrigerated trucks you need to track. For example, you need to know the location, temperature, and humidity of the trucks. In the context of this use case, you will learn how to do the following:

  • Create a new individual enrollment in DPS
  • Create a group enrollment

Let’s get started.

Adding an individual enrollment

The following steps describe how we can create an individual enrollment in DPS:

  1. In Azure, create a resource group. In the resource group, create an IoT Hub and a DPS service.
  2. In the DPS service, link to IoT Hub.
  3. Open your DPS service in the Azure portal. In the left-hand side menu, locate Manage enrollments under the Settings header.
  4. On the Manage enrollments page, select Add individual enrollments. Use Symmetric Key under Mechanism. Select Auto-generate keys and specify device01 for Registration ID and IoT Hub Device ID:
...