October 5, 2018 Mayank Baweja

Pricing information

100 credits

Duration

8 Hours

Audience

Application developer

Data engineer

Technologies

Azure Data Factory

Azure IoT Hub

Azure Stream Analytics

Azure HDInsight

Azure Spark & Spark SQL

Azure Storage

Power BI

IoT For Business  – 8 HRS Hands-on Workshop

In this workshop you will use the unique benefits of Internet of Things (IoT) to build a smart city solution to help improve traffic and public transportation in New York City. Use a combination of the power of the cloud, along with IoT Edge devices to provide anomaly detection of city buses, engine anomalies and aggressive driving detection, location broadcasting to update bus route status, and to send traffic information to help inform the timing of traffic lights. Traffic lights will also receive new IoT devices that can help detect maintenance and performance issues, such as voltage irregularities. Easily view all this information through a centralized reporting dashboard provided by Azure Time Series Insights. Use the IoT Remote Monitoring starter solution to manage and simulate IoT devices, set alerts, and view data on a map. In this hands-on-lab, you will build an end-to-end smart city solution, beginning with IoT Edge devices deployed with modules that you create which intelligently filters vehicle telemetry data for anomalies and transmits the related data to IoT Hub. IoT Hub is responsible for managing IoT devices and facilitating two-way communication between those devices and Azure services. The telemetry data will be stored in Time Series Insights, and all critical data will also flow through a custom IoT Hub endpoint that routes critical alerts to a Service Bus Queue for separate processing and storage. You will deploy and configure a custom web app that displays all IoT data on a map and displays alerts based on preconfigured rules for each type of IoT device. You will also use this custom web app to configure IoT devices and send control messages to them via IoT Hub.

Agenda

1 H

Set up IoT Remote Monitoring solution environment

Execute CLI commands
Open new web application and stop running device simulation

3 H

Provision additional Azure services

Create Service Bus queue
Add consumer group to IoT Hub
Add custom endpoint and route to IoT Hub
Create custom IoT Hub route
Create Azure Time Series Insights instance
Provision Azure Container Registry
Provision new Linux virtual machine to run the IoT Edge device

3 H

Create bus and traffic light simulated devices, and add alerts and filters

Configure the SimulationAgent and WebService projects to run locally
Finish configuring the simulated IoT device models and scripts
Explore the remaining files to understand what is happening
Configure and run the Storage Adapter project
Run the Simulator web app and create a new simulation
Run the device simulation agent locally
Create alerts and filters in the monitoring web app
Send jobs to IoT devices

2 H

Create IoT Edge device and custom modules

Add a new IoT Edge device
Install and start the IoT Edge runtime
Create and deploy the custom C# IoT Edge module for vehicle telemetry
Create the Azure Stream Analytics IoT Edge module
Deploy the custom modules to IoT Edge device

1 H

Run a console app to view critical engine alerts from the Service Bus Queue

Make sure the Service Bus Queue is receiving messages
Configure and execute the ReadEngineAlerts solution in Visual Studio 2017

3 H

Create Azure Function App to ingest critical engine alerts and store them in Cosmos DB

Create new Cosmos DB collection
Create a new Function App
Create a new Function
Add an Azure Cosmos DB output to the messages collection
Add an Azure Cosmos DB output to the critical-alerts collection
Modify the function code
View data stored by the function in Azure Cosmos DB
View the critical engine alerts in the IoT Remote Monitoring web interface
Add tag to IoT Edge's device twin and create new filter from it

2 H

View all data in Azure Time Series Insights

Add your account as a Contributor to the Data Access Policies
Go to the Time Series Insights environment and use the data explorer
View the simulated and IoT Edge bus data side-by-side
Use Perspective View to create a simultaneous view of up to four unique queries