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 – monitoring device connection and disconnection with Event Grid

In this lab, we will create an automated email when a device connects or disconnects from an IoT hub:

  1. In a new resource group, create an IoT hub.
  2. On the menu for the IoT hub, select the Events option.

    On the Events page, you can see some examples of event consumers:

Figure 12.6 – Natively supported event handlers

  1. Select the Logic Apps option. This will open the Logic Apps Designer page with a connection to the Event Grid service:

Figure 12.7 – Creating a logic app to respond to the event

  1. Sign in to the Event Grid service. Select the Continue button after signing in.
  2. Select Microsoft.Devices.IoTHubs as the resource type and select Microsoft.Devices.DevicesConnected as the event type. Enter a value (of your choice) for the Subscription name:

Figure 12.8 – Filling out the necessary...