You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/stream-analytics/stream-analytics-add-inputs.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,12 @@ description: This article describe the concept of inputs in an Azure Stream Anal
4
4
services: stream-analytics
5
5
author: jseb225
6
6
ms.author: jeanb
7
-
manager: kfile
8
7
ms.reviewer: jasonh
9
8
ms.service: stream-analytics
10
9
ms.topic: conceptual
11
-
ms.date: 04/25/2018
10
+
ms.date: 06/11/2019
12
11
---
12
+
13
13
# Understand inputs for Azure Stream Analytics
14
14
15
15
Azure Stream Analytics jobs connect to one or more data inputs. Each input defines a connection to an existing data source. Stream Analytics accepts data incoming from several kinds of event sources including Event Hubs, IoT Hub, and Blob storage. The inputs are referenced by name in the streaming SQL query that you write for each job. In the query, you can join multiple inputs to blend data or compare streaming data with a lookup to reference data, and pass the results to outputs.
Copy file name to clipboardExpand all lines: articles/stream-analytics/stream-analytics-get-started-with-azure-stream-analytics-to-process-data-from-iot-devices.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,17 +7,19 @@ ms.author: mamccrea
7
7
ms.reviewer: jasonh
8
8
ms.service: stream-analytics
9
9
ms.topic: conceptual
10
-
ms.date: 12/06/2018
11
-
ms.custom: seodec18
10
+
ms.date: 06/11/2019
12
11
---
13
12
# Get started with Azure Stream Analytics to process data from IoT devices
14
-
In this tutorial, you will learn how to create stream-processing logic to gather data from Internet of Things (IoT) devices. We will use a real-world, Internet of Things (IoT) use case to demonstrate how to build your solution quickly and economically.
13
+
14
+
In this tutorial, you learn how to create stream-processing logic to gather data from Internet of Things (IoT) devices. We will use a real-world, Internet of Things (IoT) use case to demonstrate how to build your solution quickly and economically.
* Sample query and data files downloadable from [GitHub](https://aka.ms/azure-stream-analytics-get-started-iot)
19
20
20
21
## Scenario
22
+
21
23
Contoso, which is a company in the industrial automation space, has completely automated its manufacturing process. The machinery in this plant has sensors that are capable of emitting streams of data in real time. In this scenario, a production floor manager wants to have real-time insights from the sensor data to look for patterns and take actions on them. We will use the Stream Analytics Query Language (SAQL) over the sensor data to find interesting patterns from the incoming stream of data.
22
24
23
25
Here data is being generated from a Texas Instruments sensor tag device. The payload of the data is in JSON format and looks like the following:
Copy file name to clipboardExpand all lines: articles/stream-analytics/stream-analytics-power-bi-dashboard.md
+39-51Lines changed: 39 additions & 51 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,10 @@ ms.author: jeanb
7
7
ms.reviewer: mamccrea
8
8
ms.service: stream-analytics
9
9
ms.topic: conceptual
10
-
ms.date: 12/07/2018
11
-
ms.custom: seodec18
10
+
ms.date: 06/11/2019
12
11
---
13
-
# Tutorial: Stream Analytics and Power BI: A real-time analytics dashboard for streaming data
12
+
# Stream Analytics and Power BI: A real-time analytics dashboard for streaming data
13
+
14
14
Azure Stream Analytics enables you to take advantage of one of the leading business intelligence tools, [Microsoft Power BI](https://powerbi.com/). In this article, you learn how create business intelligence tools by using Power BI as an output for your Azure Stream Analytics jobs. You also learn how to create and use a real-time dashboard.
15
15
16
16
This article continues from the Stream Analytics [real-time fraud detection](stream-analytics-real-time-fraud-detection.md) tutorial. It builds on the workflow created in that tutorial and adds a Power BI output so that you can visualize fraudulent phone calls that are detected by a Streaming Analytics job.
@@ -32,41 +32,31 @@ In the real-time fraud detection tutorial, the output is sent to Azure Blob stor
32
32
33
33
1. In the Azure portal, open the Streaming Analytics job that you created earlier. If you used the suggested name, the job is named `sa_frauddetection_job_demo`.
34
34
35
-
2. Select the **Outputs** box in the middle of the job dashboard and then select **+ Add**.
36
-
37
-
3. For **Output Alias**, enter `CallStream-PowerBI`. You can use a different name. If you do, make a note of it, because you need the name later.
38
-
39
-
4. Under **Sink**, select **Power BI**.
40
-
41
-

42
-
43
-
5. Click **Authorize**.
35
+
2. On the left menu, select **Outputs** under **Job topology**. Then, select **+ Add** and choose **Power BI** from the dropdown menu.
44
36
45
-
A window opens where you can provide your Azure credentials for a work or school account.
37
+
3. Select **+ Add** > **Power BI**. Then fill the form with the following details and select **Authorize**:
46
38
47
-

39
+
|**Setting**|**Suggested value**|
40
+
|---------|---------|
41
+
|Output alias | CallStream-PowerBI |
42
+
|Dataset name | sa-dataset |
43
+
|Table name | fraudulent-calls |
48
44
49
-
6. Enter your credentials. Be aware then when you enter your credentials, you're also giving permission to the Streaming Analytics job to access your Power BI area.
7. When you're returned to the **New output** blade, enter the following information:
47
+
> [!WARNING]
48
+
> If Power BI has a dataset and table that have the same names as the ones that you specify in the Stream Analytics job, the existing ones are overwritten.
49
+
> We recommend that you do not explicitly create this dataset and table in your Power BI account. They are automatically created when you start your Stream Analytics job and the job starts pumping output into Power BI. If your job query doesn't return any results, the dataset and table are not created.
50
+
>
52
51
53
-
***Group Workspace**: Select a workspace in your Power BI tenant where you want to create the dataset.
54
-
***Dataset Name**: Enter `sa-dataset`. You can use a different name. If you do, make a note of it for later.
55
-
***Table Name**: Enter `fraudulent-calls`. Currently, Power BI output from Stream Analytics jobs can have only one table in a dataset.
56
-
57
-

58
-
59
-
> [!WARNING]
60
-
> If Power BI has a dataset and table that have the same names as the ones that you specify in the Stream Analytics job, the existing ones are overwritten.
61
-
> We recommend that you do not explicitly create this dataset and table in your Power BI account. They are automatically created when you start your Stream Analytics job and the job starts pumping output into Power BI. If your job query doesn't return any results, the dataset and table are not created.
62
-
>
52
+
4. When you select **Authorize**, a pop-up window opens and you are asked to provide credentials to authenticate to your Power BI account. Once the authorization is successful, **Save** the settings.
63
53
64
54
8. Click **Create**.
65
55
66
56
The dataset is created with the following settings:
67
57
68
-
***defaultRetentionPolicy: BasicFIFO**: Data is FIFO, with a maximum of 200,000 rows.
69
-
***defaultMode: pushStreaming**: The dataset supports both streaming tiles and traditional report-based visuals (a.k.a. push).
58
+
***defaultRetentionPolicy: BasicFIFO** - Data is FIFO, with a maximum of 200,000 rows.
59
+
***defaultMode: pushStreaming** - The dataset supports both streaming tiles and traditional report-based visuals (also known as push).
70
60
71
61
Currently, you can't create datasets with other flags.
72
62
@@ -84,54 +74,52 @@ For more information about Power BI datasets, see the [Power BI REST API](https:
84
74
>[!NOTE]
85
75
>If you did not name the input `CallStream` in the fraud-detection tutorial, substitute your name for `CallStream` in the **FROM** and **JOIN** clauses in the query.
86
76
87
-
```SQL
88
-
/* Our criteria for fraud:
89
-
Calls made from the same caller to two phone switches in different locations (for example, Australia and Europe) within five seconds */
77
+
```SQL
78
+
/* Our criteria for fraud:
79
+
Calls made from the same caller to two phone switches in different locations (for example, Australia and Europe) within five seconds */
90
80
91
-
SELECT System.Timestamp AS WindowEnd, COUNT(*) AS FraudulentCalls
92
-
INTO "CallStream-PowerBI"
93
-
FROM "CallStream" CS1 TIMESTAMP BY CallRecTime
94
-
JOIN "CallStream" CS2 TIMESTAMP BY CallRecTime
81
+
SELECTSystem.TimestampAS WindowEnd, COUNT(*) AS FraudulentCalls
82
+
INTO "CallStream-PowerBI"
83
+
FROM"CallStream" CS1 TIMESTAMP BY CallRecTime
84
+
JOIN"CallStream" CS2 TIMESTAMP BY CallRecTime
95
85
96
-
/* Where the caller is the same, as indicated by IMSI (International Mobile Subscriber Identity) */
97
-
ON CS1.CallingIMSI = CS2.CallingIMSI
86
+
/* Where the caller is the same, as indicated by IMSI (International Mobile Subscriber Identity) */
87
+
ONCS1.CallingIMSI=CS2.CallingIMSI
98
88
99
-
/* ...and date between CS1 and CS2 is between one and five seconds */
100
-
AND DATEDIFF(ss, CS1, CS2) BETWEEN 1 AND 5
89
+
/* ...and date between CS1 and CS2 is between one and five seconds */
90
+
AND DATEDIFF(ss, CS1, CS2) BETWEEN 1AND5
101
91
102
-
/* Where the switch location is different */
103
-
WHERE CS1.SwitchNum != CS2.SwitchNum
104
-
GROUP BY TumblingWindow(Duration(second, 1))
105
-
```
92
+
/* Where the switch location is different */
93
+
WHERECS1.SwitchNum!=CS2.SwitchNum
94
+
GROUP BY TumblingWindow(Duration(second, 1))
95
+
```
106
96
107
97
4. Click **Save**.
108
98
109
99
110
100
## Test the query
101
+
111
102
This section is optional, but recommended.
112
103
113
104
1. If the TelcoStreaming app is not currently running, start it by following these steps:
114
105
115
-
* Open a command window.
106
+
* Open Command Prompt.
116
107
* Go to the folder where the telcogenerator.exe and modified telcodatagen.exe.config files are.
117
108
* Run the following command:
118
109
119
110
`telcodatagen.exe 1000 .2 2`
120
111
121
-
2.In the **Query**blade, click the dots next to the `CallStream` input and then select **Sample data from input**.
112
+
2.On the **Query**page for your Stream Analytics job, click the dots next to the `CallStream` input and then select **Sample data from input**.
122
113
123
114
3. Specify that you want three minutes' worth of data and click **OK**. Wait until you're notified that the data has been sampled.
124
115
125
-
4. Click **Test** and make sure you're getting results.
126
-
116
+
4. Click **Test** and review the results.
127
117
128
118
## Run the job
129
119
130
-
1. Make sure that the TelcoStreaming app is running.
131
-
132
-
2. Close the **Query** blade.
120
+
1. Make sure the TelcoStreaming app is running.
133
121
134
-
3. In the job blade, click**Start**.
122
+
2. Navigate to the **Overview** page for your Stream Analytics job and select**Start**.
135
123
136
124

Copy file name to clipboardExpand all lines: articles/stream-analytics/stream-analytics-quick-create-vs.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,10 @@ description: This quickstart shows you how to get started by creating a Stream A
4
4
services: stream-analytics
5
5
author: mamccrea
6
6
ms.author: mamccrea
7
-
ms.date: 12/20/2018
7
+
ms.date: 06/11/2019
8
8
ms.topic: quickstart
9
9
ms.service: stream-analytics
10
-
ms.custom: mvc
10
+
11
11
#Customer intent: "As an IT admin/developer I want to create a Stream Analytics job, configure input and output & analyze data by using Visual Studio."
0 commit comments