SlideShare une entreprise Scribd logo
1  sur  18
Télécharger pour lire hors ligne
Azure IOT:
EVENT HUB, STREAM
ANALYTICS & POWER BI
By Chourouk Hjaiej
February 2016
IOT with Azure Services Chourouk HJAIEJ
2
Table of content
Who should read this book?
Introduction
Azure event hubs, Stream Analytics & Power BI
Understanding the solution
Solution Overview with Practical Cases
Setting Things Up
Azure Event Hub
Azure Stream Analytics
Power BI
Examples of dashboard
Conclusion
Keywords
References
IOT with Azure Services Chourouk HJAIEJ
3
Who should read this book?
This paper is a practical look at IOT and different services in Azure which help to solve these problems.
It assumes the reader has a basic understanding of C#.
It is written for both developers and operations professionals who want to improve their team’s or
organization’s ability to deliver robust, highly available applications successfully. One of the biggest
challenges IOT projects face is how to reliably and securely connect devices to the solution backend.
Introduction
The Internet of Things (IOT) starts with your things: the things that matter most to your business. It`s
the Internet of your Things, it means that you are able to connect your device to a solution without
any difficulties, find and rely on a comprehensive set of technologies to connect to and analyze data,
or even build new intelligent devices.
One of the biggest challenges IOT projects face is how to reliably and securely connect devices to the
solution backend. In this paper, we will demonstrate how Azure is able to ensure these functionalities.
At WPC 2014, Microsoft announced the preview of Azure Event Hubs which will enable the collection
of event streams at high throughput which makes it perfect for IOT, data processing, scenarios. In this
paper, I'll start with a simple example to give you a first hands-on experience with Event Hubs.
We'll be building a simple example that publishes events to an Event Hub which can be processed by
one or more worker processed. I'm not fond of these examples, but in this case this could really be
useful. Think of all those applications deployed on hundreds or even thousands of machines. Some of
those applications are probably deployed on laptops, POS devices, … that don't have a direct link with
the main office, so being related to SQL Server is probably not an option. Wouldn't it be useful if all
these applications could send their information (performance…) to a single 'hub' instead of local files
or the event log, even if they're not in the main office? And what if we could then process all those
events for reporting, performance, …? These are the scenarios that are made possible by Event Hubs.
IOT raises important questions which we will address in this paper within the context of a set of
technologies. The most important one is Microsoft Azure, named by Gartner as a leading cloud
platform (2015 Magic Quadrant).
This paper will discuss the topic which is the real-time branch of the Lambda architecture and we will
implement the following components:
 An Event Hub
 A Stream Analytics with Power BI as an output.
 We will use a program in C # to simulate sending information in real time.
Regards,
Chourouk HJAIEJ, DX Technical Evangelist Intern
IOT with Azure Services Chourouk HJAIEJ
4
Azure event hubs, Stream Analytics & Power BI
Understanding the solution
A complete IOT solution is made of several parts. First of all, we need to ingest all the events and data
sent from devices and it’s a such big problem because in the Internet of Things, we have to think at
“scale” with hundreds, thousands, million and billions of devices. In this scenario, we have to
use an ingestion system that is able to scale and handle incoming data very quickly without slowing
down the entire process.
After acquiring data, the ingestion system must provide them to the business engine of our solution
that could have a path for analyzing data as a stream in real time. This path could expose
these informations to the end user that can monitor the devices and what they are “saying” from the
real world. The same information is very useful as input for a machine learning system that can help
us for predictive analysis to understand how data could evolve in the future based on current incoming
values and take preventive actions.
Solution Overview with Practical Cases
The previous section described how to manage these informations with the Microsoft Azure by
using its services.
This section illustrates those concepts in a real world scenario and demonstrates the usefulness of
Microsoft Azure services.
Among these services are event hub which include ….. and stream analytics.
The aim here is to show how the combination of an event hub and Stream analytics provides an
efficient way tomanage the huge number of events.
The figure below shows the scenario which we will use in this part.
IOT with Azure Services Chourouk HJAIEJ
5
The scenario we will use in this post builds upon previous posts that I have written so far:
We are simulating potentially millions of devices sending telemetry data. The data is sent to an Event
Hub, and processed in parallel by 3 different processes:
Instead of chaining processes together, making one process wait on the completion of a previous
process, we can scale our solution by having many independent processors work with the data in
parallel. This is incredibly powerful.
We will focus in this paper on using Stream Analytics to process streaming event data from Azure
Event Hubs at scale. We will show some pieces of code, but this code sample will show all the project.
You can build a Universal App with service bus (event hub) on Azure using AMQP. This sample explain
it very well.
Event
Source
 Use Azure Event Hub with Visual Studio
 Device Simulator for Event Hubs
Collect  Use Azure Event Hubs with Visual Studio
Filter /
Analyze /
Aggregate
 Scaling Azure Event Hubs Processing
 Use the Azure Stream Analytics
Dashboard  Use Power BI in order to have significant results
IOT with Azure Services Chourouk HJAIEJ
6
Setting Things Up
Before we start using Stream Analytics, we will need an Event Hub, something that sends data to the
Event Hub. Creating the Event Hub is very easy using the Azure Management Portal. The figure below
describes the steps to create an event hub.
Azure Event Hub
Provide a name and region and a namespace. Provide a partition count and message retention period.
IOT with Azure Services Chourouk HJAIEJ
7
As you can see, this is the list of event hubs created by me and this is the last one.
I will create “DevicePolicy” :
You can see the primary and the secondary key of this shared access policy:
Our Event hub is ready. We will now create and configure a service which will consume post events in
our Event Hub. This service is Azure Stream Analytics.
Azure Stream Analytics
From the Azure portal, click the "+" button at the bottom of the window. Select "Data Services",
"Stream Analytics," "Quick Create". Fill in the different fields and click "Create Stream Analytics job".
IOT with Azure Services Chourouk HJAIEJ
8
After a few seconds, my Azure Stream Analytics service will be created.
Setting the Azure Service Stream Analytics
Now that our Azure Stream Analytics service was created, we'll set it to receive information from our
Event Hub (then possibly turn), then send them to a Power BI portal.
Click the name of your Azure Stream Analytics ("streamanalyticsjob" in this example). Then click
"INPUTS". Click on "ADD AN INPUT".
We will select "Events Hub" (Event Hub).
IOT with Azure Services Chourouk HJAIEJ
9
In the Alias Entry field, enter the name you want to give your input in the Azure Stream Analytics.
For this demonstration, we'll select "Use Event Hub from current subscription."
IOT with Azure Services Chourouk HJAIEJ
10
Finally, we will choose the serialization settings. We have the choice between "Avro", "CSV" or "JSON".
We will select JSON because the program which I will use to send the information in the JSON format.
You will have an inputs for this Stream Analytics.
Setting a query
Now that we have defined an entry, we will define a query to retrieve the data. This query can be a
simple "select" or a more complex query to transform data or perform operations on time windows
(to average every 5 seconds).
Click on "Query" to define the data processing request. Note that the language used is very similar to
T-SQL. For this example, I will realize just a select all the fields that are present in the entrance to my
service:
IOT with Azure Services Chourouk HJAIEJ
11
SELECT * FROM Inputs
Click "Save" and confirm registration.
Setting an output
We will now set the output of our service to a Power BI portal.
IOT with Azure Services Chourouk HJAIEJ
12
Set in the "Add a Microsoft Power output BI" the name of the database and the table name. If the table
already exists Power BI side, it will be replaced with the new one. Confirm your changes.
You must obtain a new outlet for your Azure Stream Analytics service.
IOT with Azure Services Chourouk HJAIEJ
13
It remains for us to start the service. At the bottom of the page, click the Start button.
Simulating data injection
Now, we have to interest in how it sends data.
To do this, I used a small program in C # that can simulate sending data, but above all it shows how
to connect to an Event Hub precisely to send the data.
First, in my "Program.cs" file, don`t forget to replace the values with that of your Event Hub.
When running the program, here is an example of the data sent to the Event Hub:
IOT with Azure Services Chourouk HJAIEJ
14
Power BI
Now log in to the portal via the BI Power http://app.powerbi.com address.
In the left pane, in the "DataSets", a new data source, "DeviceDataset" has just appeared. It is
recognizable with the small green asterisk.
IOT with Azure Services Chourouk HJAIEJ
15
Examples of Dashboard
IOT with Azure Services Chourouk HJAIEJ
16
Azure Stream Analytics Monitoring
The Azure Stream Analytics also provides a monitoring dashboard as well as the possibility to refer to
the events related to the service logs. This can be very useful to understand what happens (especially
when it does not work).
In your Azure Stream Analytics service, click "Dashboard" to see the events related to your service (you
can also click on "Monitor").
In the dashboard, you default service supervisory common indicators and access to the operations log.
Click on the link "operations logs" to open the Services management window.
IOT with Azure Services Chourouk HJAIEJ
17
Keywords:
Azure Event Hub, Azure Stream Analytics, Scalability, Power BI, Dashboard, Cloud, Query, Azure,
References
Azure
> What is Microsoft Azure?
https://azure.microsoft.com/en-us/overview/what-is-azure/
> Microsoft – the only vendor named a leader in Gartner Magic Quadrants for IaaS,
Application PaaS and Cloud Storage
https://azure.microsoft.com/en-us/blog/microsoft-the-only-vendor-named-a-leader-in-gartner-
magic-quadrants-for-iaas-application-paas-cloud-storage-and-hybrid/
> Azure Preview Portal
https://azure.microsoft.com/en-us/features/azure-portal/
Azure Event Hub
> What is Azure Event hub?
https://azure.microsoft.com/en-gb/documentation/articles/event-hubs-overview/
Azure Stream Analytics
> What is Azure Stream analytics?
https://azure.microsoft.com/en-us/services/stream-analytics/
Power BI
> What is Power BI?
https://powerbi.microsoft.com/fr/
Azure IOT vs Amazon aws IOT
> What is the differences between Azure IOT and Amazon aws IOT?
https://paolopatierno.wordpress.com/2015/10/13/an-iot-platforms-match-microsoft-azure-iot-vs-
amazon-aws-iot/
IOT with Azure Services Chourouk HJAIEJ
18
Microsoft Azure

Contenu connexe

Tendances

The Layman's Guide to Microsoft Azure
The Layman's Guide to Microsoft AzureThe Layman's Guide to Microsoft Azure
The Layman's Guide to Microsoft AzureAptera Inc
 
Introduction to Microsoft IoT Central
Introduction to Microsoft IoT Central Introduction to Microsoft IoT Central
Introduction to Microsoft IoT Central Codit
 
How to build iot applications with google cloud
How to build iot applications with google cloudHow to build iot applications with google cloud
How to build iot applications with google cloudMohamed Nageh
 
Four Scenarios for an Integration Service Environment (ISE)
Four Scenarios for an Integration Service Environment (ISE)Four Scenarios for an Integration Service Environment (ISE)
Four Scenarios for an Integration Service Environment (ISE)Daniel Toomey
 
Living on the (IoT) edge (Sam Vanhoutte @TechdaysNL 2017)
Living on the (IoT) edge (Sam Vanhoutte @TechdaysNL 2017)Living on the (IoT) edge (Sam Vanhoutte @TechdaysNL 2017)
Living on the (IoT) edge (Sam Vanhoutte @TechdaysNL 2017)Codit
 
Building Event-Driven Integration Architectures with Azure Event Grid (GIB2019)
Building Event-Driven Integration Architectures with Azure Event Grid (GIB2019)Building Event-Driven Integration Architectures with Azure Event Grid (GIB2019)
Building Event-Driven Integration Architectures with Azure Event Grid (GIB2019)Daniel Toomey
 
What's new for Serverless Computing in Azure
What's new for Serverless Computing in AzureWhat's new for Serverless Computing in Azure
What's new for Serverless Computing in AzureMicrosoft Tech Community
 
Microsoft Azure News - Feb 2021
Microsoft Azure News - Feb 2021Microsoft Azure News - Feb 2021
Microsoft Azure News - Feb 2021Daniel Toomey
 
Microsoft Azure cloud services
Microsoft Azure cloud servicesMicrosoft Azure cloud services
Microsoft Azure cloud servicesNajeeb Khan
 
Microsoft Azure News - Nov 2016
Microsoft Azure News - Nov 2016Microsoft Azure News - Nov 2016
Microsoft Azure News - Nov 2016Daniel Toomey
 
Architecting io t solutions with microisoft azure ignite tour version
Architecting io t solutions with microisoft azure ignite tour versionArchitecting io t solutions with microisoft azure ignite tour version
Architecting io t solutions with microisoft azure ignite tour versionAlon Fliess
 
Best practices for azure governance
Best practices for azure governanceBest practices for azure governance
Best practices for azure governanceCoreStack
 
Microsoft Azure News - Sept 2016
Microsoft Azure News - Sept 2016Microsoft Azure News - Sept 2016
Microsoft Azure News - Sept 2016Daniel Toomey
 
Using Azure, AI and IoT to find out if the person next to you is a Cylon
Using Azure, AI and IoT to find out if the person next to you is a CylonUsing Azure, AI and IoT to find out if the person next to you is a Cylon
Using Azure, AI and IoT to find out if the person next to you is a CylonTodd Whitehead
 
Creation of cloud application using microsoft azure by vaishali sahare [katkar]
Creation of cloud application using microsoft azure by vaishali sahare [katkar]Creation of cloud application using microsoft azure by vaishali sahare [katkar]
Creation of cloud application using microsoft azure by vaishali sahare [katkar]vaishalisahare123
 
Inflight to Insights: Real-time Insights with Event Hubs, Stream Analytics an...
Inflight to Insights: Real-time Insights with Event Hubs, Stream Analytics an...Inflight to Insights: Real-time Insights with Event Hubs, Stream Analytics an...
Inflight to Insights: Real-time Insights with Event Hubs, Stream Analytics an...Todd Whitehead
 

Tendances (20)

The Layman's Guide to Microsoft Azure
The Layman's Guide to Microsoft AzureThe Layman's Guide to Microsoft Azure
The Layman's Guide to Microsoft Azure
 
Introduction to Microsoft IoT Central
Introduction to Microsoft IoT Central Introduction to Microsoft IoT Central
Introduction to Microsoft IoT Central
 
How to build iot applications with google cloud
How to build iot applications with google cloudHow to build iot applications with google cloud
How to build iot applications with google cloud
 
Microsoft azure
Microsoft azureMicrosoft azure
Microsoft azure
 
Four Scenarios for an Integration Service Environment (ISE)
Four Scenarios for an Integration Service Environment (ISE)Four Scenarios for an Integration Service Environment (ISE)
Four Scenarios for an Integration Service Environment (ISE)
 
Living on the (IoT) edge (Sam Vanhoutte @TechdaysNL 2017)
Living on the (IoT) edge (Sam Vanhoutte @TechdaysNL 2017)Living on the (IoT) edge (Sam Vanhoutte @TechdaysNL 2017)
Living on the (IoT) edge (Sam Vanhoutte @TechdaysNL 2017)
 
Building Event-Driven Integration Architectures with Azure Event Grid (GIB2019)
Building Event-Driven Integration Architectures with Azure Event Grid (GIB2019)Building Event-Driven Integration Architectures with Azure Event Grid (GIB2019)
Building Event-Driven Integration Architectures with Azure Event Grid (GIB2019)
 
What's new for Serverless Computing in Azure
What's new for Serverless Computing in AzureWhat's new for Serverless Computing in Azure
What's new for Serverless Computing in Azure
 
Microsoft Azure News - Feb 2021
Microsoft Azure News - Feb 2021Microsoft Azure News - Feb 2021
Microsoft Azure News - Feb 2021
 
Microsoft Azure cloud services
Microsoft Azure cloud servicesMicrosoft Azure cloud services
Microsoft Azure cloud services
 
Microsoft Azure News - Nov 2016
Microsoft Azure News - Nov 2016Microsoft Azure News - Nov 2016
Microsoft Azure News - Nov 2016
 
Azure Administrator
Azure AdministratorAzure Administrator
Azure Administrator
 
Architecting io t solutions with microisoft azure ignite tour version
Architecting io t solutions with microisoft azure ignite tour versionArchitecting io t solutions with microisoft azure ignite tour version
Architecting io t solutions with microisoft azure ignite tour version
 
Iot & cloud combine
Iot & cloud combine Iot & cloud combine
Iot & cloud combine
 
Best practices for azure governance
Best practices for azure governanceBest practices for azure governance
Best practices for azure governance
 
Azure IoT Summary
Azure IoT SummaryAzure IoT Summary
Azure IoT Summary
 
Microsoft Azure News - Sept 2016
Microsoft Azure News - Sept 2016Microsoft Azure News - Sept 2016
Microsoft Azure News - Sept 2016
 
Using Azure, AI and IoT to find out if the person next to you is a Cylon
Using Azure, AI and IoT to find out if the person next to you is a CylonUsing Azure, AI and IoT to find out if the person next to you is a Cylon
Using Azure, AI and IoT to find out if the person next to you is a Cylon
 
Creation of cloud application using microsoft azure by vaishali sahare [katkar]
Creation of cloud application using microsoft azure by vaishali sahare [katkar]Creation of cloud application using microsoft azure by vaishali sahare [katkar]
Creation of cloud application using microsoft azure by vaishali sahare [katkar]
 
Inflight to Insights: Real-time Insights with Event Hubs, Stream Analytics an...
Inflight to Insights: Real-time Insights with Event Hubs, Stream Analytics an...Inflight to Insights: Real-time Insights with Event Hubs, Stream Analytics an...
Inflight to Insights: Real-time Insights with Event Hubs, Stream Analytics an...
 

En vedette

White Paper : ASP.NET Core AngularJs 2 and Prime
White Paper : ASP.NET Core AngularJs 2 and PrimeWhite Paper : ASP.NET Core AngularJs 2 and Prime
White Paper : ASP.NET Core AngularJs 2 and PrimeHamida Rebai Trabelsi
 
Architecting Your Enterprise
Architecting Your EnterpriseArchitecting Your Enterprise
Architecting Your EnterpriseEd Seidewitz
 
Bigdata et datamining au service de la transition énergétique
Bigdata et datamining au service de la transition énergétiqueBigdata et datamining au service de la transition énergétique
Bigdata et datamining au service de la transition énergétiqueSwiss Data Forum Swiss Data Forum
 
Data Analytics in your IoT Solution Fukiat Julnual, Technical Evangelist, Mic...
Data Analytics in your IoT SolutionFukiat Julnual, Technical Evangelist, Mic...Data Analytics in your IoT SolutionFukiat Julnual, Technical Evangelist, Mic...
Data Analytics in your IoT Solution Fukiat Julnual, Technical Evangelist, Mic...BAINIDA
 
The Impact of Messaging Standards on Event-Driven Architecture and IoT
The Impact of Messaging Standards on Event-Driven Architecture and IoTThe Impact of Messaging Standards on Event-Driven Architecture and IoT
The Impact of Messaging Standards on Event-Driven Architecture and IoTSolace
 
Making Smarter Systems with IoT and Analytics
Making Smarter Systems with IoT and AnalyticsMaking Smarter Systems with IoT and Analytics
Making Smarter Systems with IoT and AnalyticsWSO2
 
When IoT Meets Artificial Intelligence
 When IoT Meets Artificial Intelligence When IoT Meets Artificial Intelligence
When IoT Meets Artificial IntelligenceVeselin Pizurica
 
Event Hub & Azure Stream Analytics
Event Hub & Azure Stream AnalyticsEvent Hub & Azure Stream Analytics
Event Hub & Azure Stream AnalyticsDavide Mauri
 
Global C4IR-1 Masterclass Adryan - Zuehlke Engineering 2017
Global C4IR-1 Masterclass Adryan - Zuehlke Engineering 2017Global C4IR-1 Masterclass Adryan - Zuehlke Engineering 2017
Global C4IR-1 Masterclass Adryan - Zuehlke Engineering 2017Justin Hayward
 
Introduction to Streaming Analytics
Introduction to Streaming AnalyticsIntroduction to Streaming Analytics
Introduction to Streaming AnalyticsGuido Schmutz
 
Apache Kafka - Scalable Message-Processing and more !
Apache Kafka - Scalable Message-Processing and more !Apache Kafka - Scalable Message-Processing and more !
Apache Kafka - Scalable Message-Processing and more !Guido Schmutz
 
IoT Analytics: Using Analytics to Generate High Value from IoT in the Real World
IoT Analytics: Using Analytics to Generate High Value from IoT in the Real WorldIoT Analytics: Using Analytics to Generate High Value from IoT in the Real World
IoT Analytics: Using Analytics to Generate High Value from IoT in the Real WorldMIT Enterprise Forum Cambridge
 
Customer Event Hub - the modern Customer 360° view
Customer Event Hub - the modern Customer 360° viewCustomer Event Hub - the modern Customer 360° view
Customer Event Hub - the modern Customer 360° viewGuido Schmutz
 
IoT Security: Problems, Challenges and Solutions
IoT Security: Problems, Challenges and SolutionsIoT Security: Problems, Challenges and Solutions
IoT Security: Problems, Challenges and SolutionsLiwei Ren任力偉
 
Achieving a single view of customer
Achieving a single view of customerAchieving a single view of customer
Achieving a single view of customerInSync Conference
 
AWS re:Invent 2016: Understanding IoT Data: How to Leverage Amazon Kinesis in...
AWS re:Invent 2016: Understanding IoT Data: How to Leverage Amazon Kinesis in...AWS re:Invent 2016: Understanding IoT Data: How to Leverage Amazon Kinesis in...
AWS re:Invent 2016: Understanding IoT Data: How to Leverage Amazon Kinesis in...Amazon Web Services
 
IoT Analytics Company Presentation
IoT Analytics Company Presentation IoT Analytics Company Presentation
IoT Analytics Company Presentation IoTAnalytics
 

En vedette (20)

White Paper : ASP.NET Core AngularJs 2 and Prime
White Paper : ASP.NET Core AngularJs 2 and PrimeWhite Paper : ASP.NET Core AngularJs 2 and Prime
White Paper : ASP.NET Core AngularJs 2 and Prime
 
Architecting Your Enterprise
Architecting Your EnterpriseArchitecting Your Enterprise
Architecting Your Enterprise
 
Bigdata et datamining au service de la transition énergétique
Bigdata et datamining au service de la transition énergétiqueBigdata et datamining au service de la transition énergétique
Bigdata et datamining au service de la transition énergétique
 
Data Analytics in your IoT Solution Fukiat Julnual, Technical Evangelist, Mic...
Data Analytics in your IoT SolutionFukiat Julnual, Technical Evangelist, Mic...Data Analytics in your IoT SolutionFukiat Julnual, Technical Evangelist, Mic...
Data Analytics in your IoT Solution Fukiat Julnual, Technical Evangelist, Mic...
 
The Impact of Messaging Standards on Event-Driven Architecture and IoT
The Impact of Messaging Standards on Event-Driven Architecture and IoTThe Impact of Messaging Standards on Event-Driven Architecture and IoT
The Impact of Messaging Standards on Event-Driven Architecture and IoT
 
Making Smarter Systems with IoT and Analytics
Making Smarter Systems with IoT and AnalyticsMaking Smarter Systems with IoT and Analytics
Making Smarter Systems with IoT and Analytics
 
When IoT Meets Artificial Intelligence
 When IoT Meets Artificial Intelligence When IoT Meets Artificial Intelligence
When IoT Meets Artificial Intelligence
 
Event Hub & Azure Stream Analytics
Event Hub & Azure Stream AnalyticsEvent Hub & Azure Stream Analytics
Event Hub & Azure Stream Analytics
 
Global C4IR-1 Masterclass Adryan - Zuehlke Engineering 2017
Global C4IR-1 Masterclass Adryan - Zuehlke Engineering 2017Global C4IR-1 Masterclass Adryan - Zuehlke Engineering 2017
Global C4IR-1 Masterclass Adryan - Zuehlke Engineering 2017
 
Azure IoT Hub
Azure IoT HubAzure IoT Hub
Azure IoT Hub
 
Introduction to Streaming Analytics
Introduction to Streaming AnalyticsIntroduction to Streaming Analytics
Introduction to Streaming Analytics
 
Customer Event Hub - the modern Customer 360° view
Customer Event Hub - the modern Customer 360° viewCustomer Event Hub - the modern Customer 360° view
Customer Event Hub - the modern Customer 360° view
 
Apache Kafka - Scalable Message-Processing and more !
Apache Kafka - Scalable Message-Processing and more !Apache Kafka - Scalable Message-Processing and more !
Apache Kafka - Scalable Message-Processing and more !
 
IoT Analytics: Using Analytics to Generate High Value from IoT in the Real World
IoT Analytics: Using Analytics to Generate High Value from IoT in the Real WorldIoT Analytics: Using Analytics to Generate High Value from IoT in the Real World
IoT Analytics: Using Analytics to Generate High Value from IoT in the Real World
 
Customer Event Hub - the modern Customer 360° view
Customer Event Hub - the modern Customer 360° viewCustomer Event Hub - the modern Customer 360° view
Customer Event Hub - the modern Customer 360° view
 
IoT Security: Problems, Challenges and Solutions
IoT Security: Problems, Challenges and SolutionsIoT Security: Problems, Challenges and Solutions
IoT Security: Problems, Challenges and Solutions
 
Achieving a single view of customer
Achieving a single view of customerAchieving a single view of customer
Achieving a single view of customer
 
AWS re:Invent 2016: Understanding IoT Data: How to Leverage Amazon Kinesis in...
AWS re:Invent 2016: Understanding IoT Data: How to Leverage Amazon Kinesis in...AWS re:Invent 2016: Understanding IoT Data: How to Leverage Amazon Kinesis in...
AWS re:Invent 2016: Understanding IoT Data: How to Leverage Amazon Kinesis in...
 
IoT Analytics Company Presentation
IoT Analytics Company Presentation IoT Analytics Company Presentation
IoT Analytics Company Presentation
 
Global flows in a digital age
Global flows in a digital ageGlobal flows in a digital age
Global flows in a digital age
 

Similaire à Azure IOT: EVENT HUB & STREAM ANALYTICS & POWER BI

Azure IoT Hub on a Toradex Colibri VF61 – Part 3: Using Cloud Services to col...
Azure IoT Hub on a Toradex Colibri VF61 – Part 3: Using Cloud Services to col...Azure IoT Hub on a Toradex Colibri VF61 – Part 3: Using Cloud Services to col...
Azure IoT Hub on a Toradex Colibri VF61 – Part 3: Using Cloud Services to col...Toradex
 
Introduction to Azure Stream Analytics
Introduction to Azure Stream AnalyticsIntroduction to Azure Stream Analytics
Introduction to Azure Stream AnalyticsSlava Kokaev
 
App development and deployment in microsoft azure
App development and deployment in microsoft azureApp development and deployment in microsoft azure
App development and deployment in microsoft azureAkhil Mavurapu
 
What is going on - Application diagnostics on Azure - TechDays Finland
What is going on - Application diagnostics on Azure - TechDays FinlandWhat is going on - Application diagnostics on Azure - TechDays Finland
What is going on - Application diagnostics on Azure - TechDays FinlandMaarten Balliauw
 
November 2022 CIAOPS Need to Know Webinar
November 2022 CIAOPS Need to Know WebinarNovember 2022 CIAOPS Need to Know Webinar
November 2022 CIAOPS Need to Know WebinarRobert Crane
 
Using Azure Machine Learning Models
Using Azure Machine Learning ModelsUsing Azure Machine Learning Models
Using Azure Machine Learning ModelsEng Teong Cheah
 
PowerApps, the Developer Story: Build an API to Integrate Corporate Data
PowerApps, the Developer Story: Build an API to Integrate Corporate DataPowerApps, the Developer Story: Build an API to Integrate Corporate Data
PowerApps, the Developer Story: Build an API to Integrate Corporate DataBram de Jager
 
Ethos Cloud Computing White Paper-v1a
Ethos Cloud Computing White Paper-v1aEthos Cloud Computing White Paper-v1a
Ethos Cloud Computing White Paper-v1aethoscomcn
 
Using power bi in hybrid it
Using power bi in hybrid itUsing power bi in hybrid it
Using power bi in hybrid ithman10010
 
Advanced Analytics and Artificial Intelligence - Transforming Your Business T...
Advanced Analytics and Artificial Intelligence - Transforming Your Business T...Advanced Analytics and Artificial Intelligence - Transforming Your Business T...
Advanced Analytics and Artificial Intelligence - Transforming Your Business T...David J Rosenthal
 
Metaverse and Digital Twins on Enterprise-Public.pdf
Metaverse and Digital Twins on Enterprise-Public.pdfMetaverse and Digital Twins on Enterprise-Public.pdf
Metaverse and Digital Twins on Enterprise-Public.pdf湯米吳 Tommy Wu
 
Your practical reference guide to build an stream analytics solution
Your practical reference guide to build an stream analytics solutionYour practical reference guide to build an stream analytics solution
Your practical reference guide to build an stream analytics solutionJesus Rodriguez
 
Beyond The Intranet: Digital Workplace Apps, Solutions & Bots
Beyond The Intranet: Digital Workplace Apps, Solutions & BotsBeyond The Intranet: Digital Workplace Apps, Solutions & Bots
Beyond The Intranet: Digital Workplace Apps, Solutions & BotsRichard Harbridge
 
Overview on Azure Machine Learning
Overview on Azure Machine LearningOverview on Azure Machine Learning
Overview on Azure Machine LearningJames Serra
 
Integrate Apps using Azure Workbench and Azure Blockchain as Service
Integrate Apps using Azure Workbench and Azure Blockchain as ServiceIntegrate Apps using Azure Workbench and Azure Blockchain as Service
Integrate Apps using Azure Workbench and Azure Blockchain as ServiceMohammad Asif
 
Modern Business Intelligence and Advanced Analytics
Modern Business Intelligence and Advanced AnalyticsModern Business Intelligence and Advanced Analytics
Modern Business Intelligence and Advanced AnalyticsCollective Intelligence Inc.
 
Digital Transformation using Predictive Analytics and Big Data
Digital Transformation using Predictive Analytics and Big DataDigital Transformation using Predictive Analytics and Big Data
Digital Transformation using Predictive Analytics and Big DataAmazon Web Services
 
Microsoft Build 2020: Data Science Recap
Microsoft Build 2020: Data Science RecapMicrosoft Build 2020: Data Science Recap
Microsoft Build 2020: Data Science RecapMark Tabladillo
 

Similaire à Azure IOT: EVENT HUB & STREAM ANALYTICS & POWER BI (20)

Azure IoT Hub on a Toradex Colibri VF61 – Part 3: Using Cloud Services to col...
Azure IoT Hub on a Toradex Colibri VF61 – Part 3: Using Cloud Services to col...Azure IoT Hub on a Toradex Colibri VF61 – Part 3: Using Cloud Services to col...
Azure IoT Hub on a Toradex Colibri VF61 – Part 3: Using Cloud Services to col...
 
Introduction to Azure Stream Analytics
Introduction to Azure Stream AnalyticsIntroduction to Azure Stream Analytics
Introduction to Azure Stream Analytics
 
App development and deployment in microsoft azure
App development and deployment in microsoft azureApp development and deployment in microsoft azure
App development and deployment in microsoft azure
 
What is going on - Application diagnostics on Azure - TechDays Finland
What is going on - Application diagnostics on Azure - TechDays FinlandWhat is going on - Application diagnostics on Azure - TechDays Finland
What is going on - Application diagnostics on Azure - TechDays Finland
 
November 2022 CIAOPS Need to Know Webinar
November 2022 CIAOPS Need to Know WebinarNovember 2022 CIAOPS Need to Know Webinar
November 2022 CIAOPS Need to Know Webinar
 
Using Azure Machine Learning Models
Using Azure Machine Learning ModelsUsing Azure Machine Learning Models
Using Azure Machine Learning Models
 
PowerApps, the Developer Story: Build an API to Integrate Corporate Data
PowerApps, the Developer Story: Build an API to Integrate Corporate DataPowerApps, the Developer Story: Build an API to Integrate Corporate Data
PowerApps, the Developer Story: Build an API to Integrate Corporate Data
 
Ethos Cloud Computing White Paper-v1a
Ethos Cloud Computing White Paper-v1aEthos Cloud Computing White Paper-v1a
Ethos Cloud Computing White Paper-v1a
 
PRD_abjz066 1.0
PRD_abjz066 1.0PRD_abjz066 1.0
PRD_abjz066 1.0
 
Cloud Analytics
Cloud AnalyticsCloud Analytics
Cloud Analytics
 
Using power bi in hybrid it
Using power bi in hybrid itUsing power bi in hybrid it
Using power bi in hybrid it
 
Advanced Analytics and Artificial Intelligence - Transforming Your Business T...
Advanced Analytics and Artificial Intelligence - Transforming Your Business T...Advanced Analytics and Artificial Intelligence - Transforming Your Business T...
Advanced Analytics and Artificial Intelligence - Transforming Your Business T...
 
Metaverse and Digital Twins on Enterprise-Public.pdf
Metaverse and Digital Twins on Enterprise-Public.pdfMetaverse and Digital Twins on Enterprise-Public.pdf
Metaverse and Digital Twins on Enterprise-Public.pdf
 
Your practical reference guide to build an stream analytics solution
Your practical reference guide to build an stream analytics solutionYour practical reference guide to build an stream analytics solution
Your practical reference guide to build an stream analytics solution
 
Beyond The Intranet: Digital Workplace Apps, Solutions & Bots
Beyond The Intranet: Digital Workplace Apps, Solutions & BotsBeyond The Intranet: Digital Workplace Apps, Solutions & Bots
Beyond The Intranet: Digital Workplace Apps, Solutions & Bots
 
Overview on Azure Machine Learning
Overview on Azure Machine LearningOverview on Azure Machine Learning
Overview on Azure Machine Learning
 
Integrate Apps using Azure Workbench and Azure Blockchain as Service
Integrate Apps using Azure Workbench and Azure Blockchain as ServiceIntegrate Apps using Azure Workbench and Azure Blockchain as Service
Integrate Apps using Azure Workbench and Azure Blockchain as Service
 
Modern Business Intelligence and Advanced Analytics
Modern Business Intelligence and Advanced AnalyticsModern Business Intelligence and Advanced Analytics
Modern Business Intelligence and Advanced Analytics
 
Digital Transformation using Predictive Analytics and Big Data
Digital Transformation using Predictive Analytics and Big DataDigital Transformation using Predictive Analytics and Big Data
Digital Transformation using Predictive Analytics and Big Data
 
Microsoft Build 2020: Data Science Recap
Microsoft Build 2020: Data Science RecapMicrosoft Build 2020: Data Science Recap
Microsoft Build 2020: Data Science Recap
 

Dernier

Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfFerryKemperman
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...OnePlan Solutions
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...confluent
 
Sending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdfSending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdf31events.com
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsSafe Software
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...Technogeeks
 
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...Akihiro Suda
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 
Xen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfXen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfStefano Stabellini
 
Post Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on IdentityPost Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on Identityteam-WIBU
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Mater
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesŁukasz Chruściel
 
Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Rob Geurden
 
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Matt Ray
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Hr365.us smith
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfMarharyta Nedzelska
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationBradBedford3
 

Dernier (20)

Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
 
Sending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdfSending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdf
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data Streams
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...
 
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 
Xen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdfXen Safety Embedded OSS Summit April 2024 v4.pdf
Xen Safety Embedded OSS Summit April 2024 v4.pdf
 
Post Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on IdentityPost Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on Identity
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New Features
 
Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...
 
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdf
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion Application
 

Azure IOT: EVENT HUB & STREAM ANALYTICS & POWER BI

  • 1. Azure IOT: EVENT HUB, STREAM ANALYTICS & POWER BI By Chourouk Hjaiej February 2016
  • 2. IOT with Azure Services Chourouk HJAIEJ 2 Table of content Who should read this book? Introduction Azure event hubs, Stream Analytics & Power BI Understanding the solution Solution Overview with Practical Cases Setting Things Up Azure Event Hub Azure Stream Analytics Power BI Examples of dashboard Conclusion Keywords References
  • 3. IOT with Azure Services Chourouk HJAIEJ 3 Who should read this book? This paper is a practical look at IOT and different services in Azure which help to solve these problems. It assumes the reader has a basic understanding of C#. It is written for both developers and operations professionals who want to improve their team’s or organization’s ability to deliver robust, highly available applications successfully. One of the biggest challenges IOT projects face is how to reliably and securely connect devices to the solution backend. Introduction The Internet of Things (IOT) starts with your things: the things that matter most to your business. It`s the Internet of your Things, it means that you are able to connect your device to a solution without any difficulties, find and rely on a comprehensive set of technologies to connect to and analyze data, or even build new intelligent devices. One of the biggest challenges IOT projects face is how to reliably and securely connect devices to the solution backend. In this paper, we will demonstrate how Azure is able to ensure these functionalities. At WPC 2014, Microsoft announced the preview of Azure Event Hubs which will enable the collection of event streams at high throughput which makes it perfect for IOT, data processing, scenarios. In this paper, I'll start with a simple example to give you a first hands-on experience with Event Hubs. We'll be building a simple example that publishes events to an Event Hub which can be processed by one or more worker processed. I'm not fond of these examples, but in this case this could really be useful. Think of all those applications deployed on hundreds or even thousands of machines. Some of those applications are probably deployed on laptops, POS devices, … that don't have a direct link with the main office, so being related to SQL Server is probably not an option. Wouldn't it be useful if all these applications could send their information (performance…) to a single 'hub' instead of local files or the event log, even if they're not in the main office? And what if we could then process all those events for reporting, performance, …? These are the scenarios that are made possible by Event Hubs. IOT raises important questions which we will address in this paper within the context of a set of technologies. The most important one is Microsoft Azure, named by Gartner as a leading cloud platform (2015 Magic Quadrant). This paper will discuss the topic which is the real-time branch of the Lambda architecture and we will implement the following components:  An Event Hub  A Stream Analytics with Power BI as an output.  We will use a program in C # to simulate sending information in real time. Regards, Chourouk HJAIEJ, DX Technical Evangelist Intern
  • 4. IOT with Azure Services Chourouk HJAIEJ 4 Azure event hubs, Stream Analytics & Power BI Understanding the solution A complete IOT solution is made of several parts. First of all, we need to ingest all the events and data sent from devices and it’s a such big problem because in the Internet of Things, we have to think at “scale” with hundreds, thousands, million and billions of devices. In this scenario, we have to use an ingestion system that is able to scale and handle incoming data very quickly without slowing down the entire process. After acquiring data, the ingestion system must provide them to the business engine of our solution that could have a path for analyzing data as a stream in real time. This path could expose these informations to the end user that can monitor the devices and what they are “saying” from the real world. The same information is very useful as input for a machine learning system that can help us for predictive analysis to understand how data could evolve in the future based on current incoming values and take preventive actions. Solution Overview with Practical Cases The previous section described how to manage these informations with the Microsoft Azure by using its services. This section illustrates those concepts in a real world scenario and demonstrates the usefulness of Microsoft Azure services. Among these services are event hub which include ….. and stream analytics. The aim here is to show how the combination of an event hub and Stream analytics provides an efficient way tomanage the huge number of events. The figure below shows the scenario which we will use in this part.
  • 5. IOT with Azure Services Chourouk HJAIEJ 5 The scenario we will use in this post builds upon previous posts that I have written so far: We are simulating potentially millions of devices sending telemetry data. The data is sent to an Event Hub, and processed in parallel by 3 different processes: Instead of chaining processes together, making one process wait on the completion of a previous process, we can scale our solution by having many independent processors work with the data in parallel. This is incredibly powerful. We will focus in this paper on using Stream Analytics to process streaming event data from Azure Event Hubs at scale. We will show some pieces of code, but this code sample will show all the project. You can build a Universal App with service bus (event hub) on Azure using AMQP. This sample explain it very well. Event Source  Use Azure Event Hub with Visual Studio  Device Simulator for Event Hubs Collect  Use Azure Event Hubs with Visual Studio Filter / Analyze / Aggregate  Scaling Azure Event Hubs Processing  Use the Azure Stream Analytics Dashboard  Use Power BI in order to have significant results
  • 6. IOT with Azure Services Chourouk HJAIEJ 6 Setting Things Up Before we start using Stream Analytics, we will need an Event Hub, something that sends data to the Event Hub. Creating the Event Hub is very easy using the Azure Management Portal. The figure below describes the steps to create an event hub. Azure Event Hub Provide a name and region and a namespace. Provide a partition count and message retention period.
  • 7. IOT with Azure Services Chourouk HJAIEJ 7 As you can see, this is the list of event hubs created by me and this is the last one. I will create “DevicePolicy” : You can see the primary and the secondary key of this shared access policy: Our Event hub is ready. We will now create and configure a service which will consume post events in our Event Hub. This service is Azure Stream Analytics. Azure Stream Analytics From the Azure portal, click the "+" button at the bottom of the window. Select "Data Services", "Stream Analytics," "Quick Create". Fill in the different fields and click "Create Stream Analytics job".
  • 8. IOT with Azure Services Chourouk HJAIEJ 8 After a few seconds, my Azure Stream Analytics service will be created. Setting the Azure Service Stream Analytics Now that our Azure Stream Analytics service was created, we'll set it to receive information from our Event Hub (then possibly turn), then send them to a Power BI portal. Click the name of your Azure Stream Analytics ("streamanalyticsjob" in this example). Then click "INPUTS". Click on "ADD AN INPUT". We will select "Events Hub" (Event Hub).
  • 9. IOT with Azure Services Chourouk HJAIEJ 9 In the Alias Entry field, enter the name you want to give your input in the Azure Stream Analytics. For this demonstration, we'll select "Use Event Hub from current subscription."
  • 10. IOT with Azure Services Chourouk HJAIEJ 10 Finally, we will choose the serialization settings. We have the choice between "Avro", "CSV" or "JSON". We will select JSON because the program which I will use to send the information in the JSON format. You will have an inputs for this Stream Analytics. Setting a query Now that we have defined an entry, we will define a query to retrieve the data. This query can be a simple "select" or a more complex query to transform data or perform operations on time windows (to average every 5 seconds). Click on "Query" to define the data processing request. Note that the language used is very similar to T-SQL. For this example, I will realize just a select all the fields that are present in the entrance to my service:
  • 11. IOT with Azure Services Chourouk HJAIEJ 11 SELECT * FROM Inputs Click "Save" and confirm registration. Setting an output We will now set the output of our service to a Power BI portal.
  • 12. IOT with Azure Services Chourouk HJAIEJ 12 Set in the "Add a Microsoft Power output BI" the name of the database and the table name. If the table already exists Power BI side, it will be replaced with the new one. Confirm your changes. You must obtain a new outlet for your Azure Stream Analytics service.
  • 13. IOT with Azure Services Chourouk HJAIEJ 13 It remains for us to start the service. At the bottom of the page, click the Start button. Simulating data injection Now, we have to interest in how it sends data. To do this, I used a small program in C # that can simulate sending data, but above all it shows how to connect to an Event Hub precisely to send the data. First, in my "Program.cs" file, don`t forget to replace the values with that of your Event Hub. When running the program, here is an example of the data sent to the Event Hub:
  • 14. IOT with Azure Services Chourouk HJAIEJ 14 Power BI Now log in to the portal via the BI Power http://app.powerbi.com address. In the left pane, in the "DataSets", a new data source, "DeviceDataset" has just appeared. It is recognizable with the small green asterisk.
  • 15. IOT with Azure Services Chourouk HJAIEJ 15 Examples of Dashboard
  • 16. IOT with Azure Services Chourouk HJAIEJ 16 Azure Stream Analytics Monitoring The Azure Stream Analytics also provides a monitoring dashboard as well as the possibility to refer to the events related to the service logs. This can be very useful to understand what happens (especially when it does not work). In your Azure Stream Analytics service, click "Dashboard" to see the events related to your service (you can also click on "Monitor"). In the dashboard, you default service supervisory common indicators and access to the operations log. Click on the link "operations logs" to open the Services management window.
  • 17. IOT with Azure Services Chourouk HJAIEJ 17 Keywords: Azure Event Hub, Azure Stream Analytics, Scalability, Power BI, Dashboard, Cloud, Query, Azure, References Azure > What is Microsoft Azure? https://azure.microsoft.com/en-us/overview/what-is-azure/ > Microsoft – the only vendor named a leader in Gartner Magic Quadrants for IaaS, Application PaaS and Cloud Storage https://azure.microsoft.com/en-us/blog/microsoft-the-only-vendor-named-a-leader-in-gartner- magic-quadrants-for-iaas-application-paas-cloud-storage-and-hybrid/ > Azure Preview Portal https://azure.microsoft.com/en-us/features/azure-portal/ Azure Event Hub > What is Azure Event hub? https://azure.microsoft.com/en-gb/documentation/articles/event-hubs-overview/ Azure Stream Analytics > What is Azure Stream analytics? https://azure.microsoft.com/en-us/services/stream-analytics/ Power BI > What is Power BI? https://powerbi.microsoft.com/fr/ Azure IOT vs Amazon aws IOT > What is the differences between Azure IOT and Amazon aws IOT? https://paolopatierno.wordpress.com/2015/10/13/an-iot-platforms-match-microsoft-azure-iot-vs- amazon-aws-iot/
  • 18. IOT with Azure Services Chourouk HJAIEJ 18 Microsoft Azure