Reader small image

You're reading from  The Azure IoT Handbook

Product typeBook
Published inDec 2023
PublisherPackt
ISBN-139781837633616
Edition1st Edition
Right arrow
Author (1)
Dan Clark
Dan Clark
author image
Dan Clark

Dan Clark is a senior developer and data engineer specializing in Microsoft technologies. He is focused on learning new AI and data technologies and training others on how to best implement those technologies. He has worked as an Azure Technical Trainer (ATT)for Microsoft and has over 25 years of experience as a Microsoft Certified Trainer. Dan has published several books and numerous articles on Microsoft technologies. He is a regular speaker at various developer and database conferences and user group meetings and enjoys interacting with the Microsoft communities.
Read more about Dan Clark

Right arrow

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...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
The Azure IoT Handbook
Published in: Dec 2023Publisher: PacktISBN-13: 9781837633616

Author (1)

author image
Dan Clark

Dan Clark is a senior developer and data engineer specializing in Microsoft technologies. He is focused on learning new AI and data technologies and training others on how to best implement those technologies. He has worked as an Azure Technical Trainer (ATT)for Microsoft and has over 25 years of experience as a Microsoft Certified Trainer. Dan has published several books and numerous articles on Microsoft technologies. He is a regular speaker at various developer and database conferences and user group meetings and enjoys interacting with the Microsoft communities.
Read more about Dan Clark