azure iot suite - a look behind the curtain (sam vanhoutte @azug event)
TRANSCRIPT
Azure IoT ServicesA look behind the
curtain.
Azure IoT Suite. A look behind the curtain.
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
The IoT value chain
Azure IoT Services
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 !!
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
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
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
Azure IoT Suite
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
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
13
DemoA walk through the suite:• Creation• Portal
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
The Device Store
16
Azure DocumentDB➔ Every device is 1 document with
➔ Device metadata➔ Command list➔ Command history
➔ Can extend with custom data
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.
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
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
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)
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 !
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
23
DemoHow to connect a device to the IoT
Suite• Sending telemetry• Listening for commands
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
How can we use this
How should we position Azure IoT Suite
Good for prototyping
Ideal for quick demos
Interesting ref architecture
Not a ready to use solution
What is missing➔ Cloud 2 Cloud messaging➔ Activation / Provisioning➔ Flexibility in parameters & rules
➔ Hardcoded to Humidity, Temperature (& larger than)➔ Backend integration (Logic Apps…)
27
Thank you for listening !Questions ?
28