Azure IoT Services
A look behind the curtain.
Azure IoT Suite. A look behind the curtain.
Nice to meet you
SamVANHOUTTE
CTO
8 year – Microsoft p-tsp
3rd year – Azure MVP
sam.vanhoutte@codit.eu
+32 474 849 993
@SamVanhoutte
be.linkedin.com/in/samvanhoutte/
> 100 Active customers
International Focus -
HQ in BEFocused on integration solutions
2000 Belgium
2004 France
2013 Portugal
2016 Switzerland
70 employees
> 50 consultants Microsoft certifiede-news + SoMe
2012 & 2013
Partner of the Year
Award Finalist
Application Integration
The IoT value chain
Azure IoT Services
Field
Gateway
Device
Connectivity & Management
Devices
RTOS,Linux,Windows,Android,iOS
Protocol
Adaptation
Cloud Gateway
IoT 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
Devices
RTOS,Linux,Windows,Android,iOS
Protocol
Adaptation
Cloud Gateway
IoT 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
Devices
RTOS,Linux,Windows,Android,iOS
Protocol
Adaptation
Batch Analytics & Visualizations
Azure Data Lake, AzureML, Power BI,
Azure Data Factory
Hot Path Analytics
Azure Stream Analytics, Azure HDInsight Storm
Hot Path Business Logic
Service Fabric & Actor Framework
Cloud Gateway
Event 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
Devices
RTOS,Linux,Windows,Android,iOS
Protocol
Adaptation
Batch Analytics & Visualizations
Azure HDInsight, AzureML, Power BI,
Azure Data Factory
Hot Path Analytics
Azure Stream Analytics, Azure HDInsight Storm
Presentation &
Business Connectivity
App Service, Websites
Dynamics, BizTalk Services,
Notification Hubs
Hot Path Business Logic
Service Fabric & Actor Framework
Cloud Gateway
IoT Hub
Field
Gateway
Protocol
Adaptation
9
Azure IoT Suite
Azure IoT Suite
Capture and analyze data to transform your business
11
Azure IoT Suite
12
➔ DeviceConnectivity and Management
➔ Data Ingestion and Command & Control
➔ Stream Processing & PredictiveAnalytics
➔ Workflow Automation
➔ Dashboards andVisualization
➔ Preconfigured Solutions
➔ Remote monitoring
➔ Predictive Maintenance
Demo
A walk through the suite:
• Creation
• Portal
13
The Remote Monitoring architecture
15
Components created with Remote Monitoring Preconfigured Solution
Devices
Azure IoT Suite Remote Monitoring
Back end
systems
and
processesC# simulator
Event 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) messages
SELECT * FROM DeviceDataStream
Partition By PartitionId
WHERE ObjectType = 'DeviceInfo'
{suite}-ehout{suite}
EventProcessor-WebJob
(DeviceAdministrationProcessor)
DeviceRegistry
Telemetry job
Azure 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 job
Azure Stream Analytics
➔ Used to process Rules & Alerts.
--QUERY TO COMPARE VALUES > REF
SELECT *
INTO DeviceRulesMonitoring
FROM AlarmsData
SELECT *
INTO DeviceRulesHub
FROM AlarmsData
{suite}
rulesoutput
(csv, timebased)
codit-iot-ehruleout
(csv, timebased)
devicerules.json
EventProcessor-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
Demo
How to connect a device to the IoT Suite
• Sending telemetry
• Listening for commands
23
Gateways, lot’s of gateways
24
Telemetry ingestion
Software Field Gateway
Azure Cloud Gateway
Device Registry
Device Lifecycle
Device Configuration
Message Routing
Cloud2Cloud API
SigFox Cloud
Lora Cloud
BlaBla Cloud
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

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

  • 1.
    Azure IoT Services Alook behind the curtain.
  • 2.
    Azure IoT Suite.A look behind the curtain.
  • 3.
    Nice to meetyou SamVANHOUTTE CTO 8 year – Microsoft p-tsp 3rd year – Azure MVP sam.vanhoutte@codit.eu +32 474 849 993 @SamVanhoutte be.linkedin.com/in/samvanhoutte/ > 100 Active customers International Focus - HQ in BEFocused on integration solutions 2000 Belgium 2004 France 2013 Portugal 2016 Switzerland 70 employees > 50 consultants Microsoft certifiede-news + SoMe 2012 & 2013 Partner of the Year Award Finalist Application Integration
  • 4.
  • 5.
  • 6.
    Field Gateway Device Connectivity & Management Devices RTOS,Linux,Windows,Android,iOS Protocol Adaptation CloudGateway IoT 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 !!
  • 7.
    Field Gateway Device Connectivity & Management Devices RTOS,Linux,Windows,Android,iOS Protocol Adaptation CloudGateway IoT 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
  • 8.
    Field Gateway Device Connectivity & Management Analytics& Operationalized Insights Devices RTOS,Linux,Windows,Android,iOS Protocol Adaptation Batch Analytics & Visualizations Azure Data Lake, AzureML, Power BI, Azure Data Factory Hot Path Analytics Azure Stream Analytics, Azure HDInsight Storm Hot Path Business Logic Service Fabric & Actor Framework Cloud Gateway Event 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
  • 9.
    Field Gateway Device Connectivity & Management Analytics& Operationalized Insights Presentation & Business Connectivity Devices RTOS,Linux,Windows,Android,iOS Protocol Adaptation Batch Analytics & Visualizations Azure HDInsight, AzureML, Power BI, Azure Data Factory Hot Path Analytics Azure Stream Analytics, Azure HDInsight Storm Presentation & Business Connectivity App Service, Websites Dynamics, BizTalk Services, Notification Hubs Hot Path Business Logic Service Fabric & Actor Framework Cloud Gateway IoT Hub Field Gateway Protocol Adaptation 9
  • 10.
  • 11.
    Azure IoT Suite Captureand analyze data to transform your business 11
  • 12.
    Azure IoT Suite 12 ➔DeviceConnectivity and Management ➔ Data Ingestion and Command & Control ➔ Stream Processing & PredictiveAnalytics ➔ Workflow Automation ➔ Dashboards andVisualization ➔ Preconfigured Solutions ➔ Remote monitoring ➔ Predictive Maintenance
  • 13.
    Demo A walk throughthe suite: • Creation • Portal 13
  • 14.
    The Remote Monitoringarchitecture 15 Components created with Remote Monitoring Preconfigured Solution Devices Azure IoT Suite Remote Monitoring Back end systems and processesC# simulator Event Hub Storage blobs DocumentDB Web/Mobile App Stream Analytics Logic Apps Azure Active Directory IoT Hub Web Jobs Power BI
  • 15.
    The Device Store 16 AzureDocumentDB ➔ Every device is 1 document with ➔ Device metadata ➔ Command list ➔ Command history ➔ Can extend with custom data
  • 16.
    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.
  • 17.
    You can easilyturn 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
  • 18.
    DeviceInfo job 19 Azure StreamAnalytics ➔ Used to listen for DeviceInfo (sent on start) messages SELECT * FROM DeviceDataStream Partition By PartitionId WHERE ObjectType = 'DeviceInfo' {suite}-ehout{suite} EventProcessor-WebJob (DeviceAdministrationProcessor) DeviceRegistry
  • 19.
    Telemetry job Azure StreamAnalytics ➔ 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)
  • 20.
    Rules job Azure StreamAnalytics ➔ Used to process Rules & Alerts. --QUERY TO COMPARE VALUES > REF SELECT * INTO DeviceRulesMonitoring FROM AlarmsData SELECT * INTO DeviceRulesHub FROM AlarmsData {suite} rulesoutput (csv, timebased) codit-iot-ehruleout (csv, timebased) devicerules.json EventProcessor-WebJob (ActionProcessor) Logic App (not implemented) Tip: add tumbling window !
  • 21.
    You can changethe 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
  • 22.
    Demo How to connecta device to the IoT Suite • Sending telemetry • Listening for commands 23
  • 23.
    Gateways, lot’s ofgateways 24 Telemetry ingestion Software Field Gateway Azure Cloud Gateway Device Registry Device Lifecycle Device Configuration Message Routing Cloud2Cloud API SigFox Cloud Lora Cloud BlaBla Cloud
  • 24.
    How can weuse this
  • 25.
    How should weposition Azure IoT Suite Good for prototyping Ideal for quick demos Interesting ref architecture Not a ready to use solution
  • 26.
    What is missing ➔Cloud 2 Cloud messaging ➔ Activation / Provisioning ➔ Flexibility in parameters & rules ➔ Hardcoded to Humidity,Temperature (& larger than) ➔ Backend integration (Logic Apps…) 27
  • 27.
    Thank you forlistening ! Questions ? 28