azure iot suite - a look behind the curtain (sam vanhoutte @azug event)

27
Azure IoT Services A look behind the curtain.

Upload: codit

Post on 06-Jan-2017

956 views

Category:

Technology


3 download

TRANSCRIPT

Page 1: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

Azure IoT ServicesA look behind the

curtain.

Page 2: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

Azure IoT Suite. A look behind the curtain.

Page 3: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

Nice to meet youSam VANHOUTTECTO8 year – Microsoft p-tsp3rd year – Azure MVP

[email protected]+32 474 849 [email protected]/in/samvanhoutte/

> 100 Active customers

International Focus - HQ in BEFocused on integration solutions

2000 Belgium2004 France2013 Portugal2016 Switzerland

70 employees > 50 consultants Microsoft

certifiede-news + SoMe

2012 & 2013Partner of the Year

Award FinalistApplication Integration

Page 4: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

The IoT value chain

Page 5: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

Azure IoT Services

Page 6: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

Field Gateway

Device Connectivity & Management

Azure IoT architectureDe

vices

RTOS

, Lin

ux, W

indo

ws, A

ndro

id, iO

S

Protocol Adaptation

Cloud GatewayIoT Hub

Field Gateway

Protocol Adaptation

IoT Hub• Capability of the Azure IoT Suite• Bi-directional device <-> cloud • Up to 10 million devices• Telemetry ingestion• Command & control• [Cloud to cloud communication]• Device registry & identity• [Device Management]• HTTPs / AMQP (incl WebSocket) / MQTT

6

G.A. TODAY !!

Page 7: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

Field Gateway

Device Connectivity & Management

Azure IoT architectureDe

vices

RTOS

, Lin

ux, W

indo

ws, A

ndro

id, iO

S

Protocol Adaptation

Cloud GatewayIoT Hub

Field Gateway

Protocol Adaptation

Cross-Platform Device Support• Open source “agent” framework• Simple, secure device <-> cloud connectivity &

management• RTOS, Linux, Windows, Android, iOS• Easy to use, not required

Cross Platform C Code

OS Abstraction Layer / OS Bindings

C API .NET API Java API Javascript API

7

Page 8: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

Field Gateway

Device Connectivity & Management

Analytics & Operationalized Insights

Azure IoT architectureDe

vices

RTOS

, Lin

ux, W

indo

ws, A

ndro

id, iO

S

Protocol Adaptation

Batch Analytics & VisualizationsAzure Data Lake, AzureML, Power BI, Azure Data Factory

Hot Path AnalyticsAzure Stream Analytics, Azure HDInsight Storm

Hot Path Business LogicService Fabric & Actor Framework

Cloud GatewayEvent Hubs&IoT Hub

Field Gateway

Protocol Adaptation

Find insights to• Power new services• Improve your “things”

Operationalize your insights in real time

IoT Scale Object Models & Business Logic

8

Page 9: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

Field Gateway

Device Connectivity & Management

Analytics & Operationalized Insights

Presentation & Business Connectivity

Azure IoT architectureDe

vices

RTOS

, Lin

ux, W

indo

ws, A

ndro

id, iO

S

Protocol Adaptation

Batch Analytics & VisualizationsAzure HDInsight, AzureML, Power BI, Azure Data Factory

Hot Path AnalyticsAzure Stream Analytics, Azure HDInsight Storm

Presentation & Business Connectivity

App Service, Websites

Dynamics, BizTalk Services, Notification Hubs

Hot Path Business LogicService Fabric & Actor Framework

Cloud GatewayIoT Hub

Field Gateway

Protocol Adaptation

9

Page 10: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

Azure IoT Suite

Page 11: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

11

Azure IoT SuiteCapture and analyze data to transform your business

Connect and scale with efficiency

Analyze and act on new

data

Integrate and transform

business processes

Business Systems1010100111010010110101010110101

10101010110100011010001011

10101010110101

10101010110100011010001011010101

Page 12: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

12

Azure IoT Suite➔ Device Connectivity and Management➔ Data Ingestion and Command & Control➔ Stream Processing & Predictive Analytics➔ Workflow Automation➔ Dashboards and Visualization➔ Preconfigured Solutions

➔ Remote monitoring➔ Predictive Maintenance

Page 13: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

13

DemoA walk through the suite:• Creation• Portal

Page 14: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

The Remote Monitoring architecture

15

Components created with Remote Monitoring Preconfigured Solution

Devices

Azure IoT Suite Remote Monitoring

Back end systems and processes

C# simulatorEvent Hub

Storage blobs DocumentDB

Web/Mobile App

Stream Analytics Logic Apps

Azure Active Directory

IoT Hub Web Jobs

Power BI

Page 15: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

The Device Store

16

Azure DocumentDB➔ Every device is 1 document with

➔ Device metadata➔ Command list➔ Command history

➔ Can extend with custom data

Page 16: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

Ingestion, Identity & Commands

17

Azure IoT Hub➔ Every device exists as an identity in the IoT

Hub➔ Ready to send telemetry (+ DeviceInfo)➔ Ready to listen for commands and send feedback

Change the IoT Hub tier to S1 to save money

We care about your budget. Tip of the week.

Page 17: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

You can easily turn off these jobs, while not testing.

We care about your budget. Tip of the week.

The event processors

18

Azure Stream Analytics➔ These jobs are being created

➔ {suitename}-DeviceInfo➔ {suitename}-Telemetry➔ {suitename}-Rules

Page 18: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

DeviceInfo job

19

Azure Stream Analytics➔ Used to listen for DeviceInfo (sent on start)

messagesSELECT * FROM DeviceDataStream Partition By PartitionId WHERE ObjectType = 'DeviceInfo'

{suite}-ehout{suite}

EventProcessor-WebJob(DeviceAdministrationProcessor)

DeviceRegistry

Page 19: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

Telemetry jobAzure Stream Analytics➔ Used to process Rules & Alerts

SELECT *INTO [Telemetry] FROM [StreamData]

SELECT DeviceId, AVG (Humidity) AS [AverageHumidity], MIN(Humidity) AS [MinimumHumidity], MAX(Humidity) AS [MaxHumidity], 5.0 AS TimeframeMinutes INTO [TelemetrySummary]FROM [StreamData]GROUP BY DeviceId, SlidingWindow (mi, 5)

{suite}

devicetelemetry (csv, timebased)

Devicetelemetry-summary(csv, timebased)

Page 20: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

Rules jobAzure Stream Analytics➔ Used to process Rules & Alerts.

--QUERY TO COMPARE VALUES > REF

SELECT *INTO DeviceRulesMonitoringFROM AlarmsData

SELECT *INTO DeviceRulesHubFROM AlarmsData

{suite}

rulesoutput (csv, timebased)

codit-iot-ehruleout(csv, timebased)

devicerules.jsonEventProcessor-WebJob

(ActionProcessor)

Logic App (not implemented)

Tip: add tumbling window !

Page 21: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

You can change the App Service Plan to reduce costs

We care about your budget. Tip of the week.

The presentation layer

22

Azure App Service & Power BI➔ Portal allows to

➔ Manage / create devices➔ Send commands➔ View telemetry➔ Enable rules

➔ Power BI controls used to show real time graphs, on blob

Page 22: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

23

DemoHow to connect a device to the IoT

Suite• Sending telemetry• Listening for commands

Page 23: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

Gateways, lot’s of gateways

24

Telemetry ingestion

Software Field Gateway

Azure Cloud Gateway

Device Registry

Device Lifecycle

Device Configuration

Message Routing

Cloud2Cloud APISigFox Cloud

Lora Cloud

BlaBla Cloud

Activation

Configuration

Page 24: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

How can we use this

Page 25: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

How should we position Azure IoT Suite

Good for prototyping

Ideal for quick demos

Interesting ref architecture

Not a ready to use solution

Page 26: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

What is missing➔ Cloud 2 Cloud messaging➔ Activation / Provisioning➔ Flexibility in parameters & rules

➔ Hardcoded to Humidity, Temperature (& larger than)➔ Backend integration (Logic Apps…)

27

Page 27: Azure IoT suite - A look behind the curtain (Sam Vanhoutte @AZUG Event)

Thank you for listening !Questions ?

28