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/iot-operations/get-started-end-to-end-sample/quickstart-get-insights.md
+43-12Lines changed: 43 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.author: baanders
6
6
ms.topic: quickstart
7
7
ms.custom:
8
8
- ignite-2023
9
-
ms.date: 08/05/2024
9
+
ms.date: 10/01/2024
10
10
11
11
#CustomerIntent: As an OT user, I want to create a visual report for my processed OPC UA data that I can use to analyze and derive insights from it.
12
12
---
@@ -27,7 +27,7 @@ Before you begin this quickstart, you must complete the following quickstarts:
27
27
-[Quickstart: Add OPC UA assets to your Azure IoT Operations Preview cluster](quickstart-add-assets.md)
28
28
-[Quickstart: Send asset telemetry to the cloud using a dataflow](quickstart-upload-telemetry-to-cloud.md)
29
29
30
-
You also need a Microsoft Fabric subscription. In your subscription, you need access to a **premium workspace** with **Contributor** or above permissions.
30
+
You also need a Microsoft Fabric subscription. In your subscription, you need access to a workspace with **Contributor** or above permissions.
31
31
32
32
Additionally, your Fabric tenant must allow the creation of Real-Time Dashboards. This is a setting that can be enabled by your tenant administrator. For more information, see [Enable tenant settings in the admin portal](/fabric/real-time-intelligence/dashboard-real-time-create#enable-tenant-settings-in-the-admin-portal).
33
33
@@ -45,7 +45,7 @@ In this section, you create an eventstream that will be used to bring your data
45
45
46
46
Start by navigating to the [Real-Time Intelligence experience in Microsoft Fabric](https://msit.powerbi.com/home?experience=kusto).
47
47
48
-
Follow the steps in [Create an eventstream in Microsoft Fabric](/fabric/real-time-intelligence/event-streams/create-manage-an-eventstream?pivots=enhanced-capabilities) to create a new eventstream from the Real-Time Intelligence capabilities.
48
+
Follow the steps in [Create an eventstream in Microsoft Fabric](/fabric/real-time-intelligence/event-streams/create-manage-an-eventstream?pivots=standard-capabilities#create-an-eventstream-1) to create a new eventstream from the Real-Time Intelligence capabilities.
49
49
50
50
After the eventstream is created, you'll see the main editor where you can start adding sources to the eventstream.
51
51
@@ -55,10 +55,12 @@ After the eventstream is created, you'll see the main editor where you can start
55
55
56
56
Next, add your event hub from the previous quickstart as a data source for the eventstream.
57
57
58
-
Follow the steps in [Add Azure Event Hubs source to an eventstream](/fabric/real-time-intelligence/event-streams/add-source-azure-event-hubs?pivots=enhanced-capabilities) to add the event source. Keep the following notes in mind:
58
+
Follow the steps in [Add Azure Event Hubs source to an eventstream](/fabric/real-time-intelligence/event-streams/add-source-azure-event-hubs?pivots=standard-capabilities#add-an-azure-event-hub-as-a-source) to add the event source. Keep the following notes in mind:
59
59
60
-
- When it's time to select a **Data format**, choose *Json* (it might be selected already by default).
61
-
- Make sure to complete all the steps in the article through selecting **Publish** on the ribbon.
60
+
- You'll be creating a new cloud connection with Shared Access Key authentication.
61
+
- Make sure local authentication is enabled on your event hub. You can set this from its Overview page in the Azure portal.
62
+
- For **Consumer group**, use the default selection (*$Default*).
63
+
- For **Data format**, choose *Json* (it might be selected already by default).
62
64
63
65
After completing this flow, the Azure event hub is visible in the eventstream live view as a source.
64
66
@@ -83,7 +85,7 @@ In this section, you create a KQL database in your Microsoft Fabric workspace to
83
85
84
86
1. Follow the steps in [Create an eventhouse](/fabric/real-time-intelligence/create-eventhouse#create-an-eventhouse-1) to create a Real-Time Intelligence eventhouse with a child KQL database. You only need to complete the section entitled **Create an eventhouse**.
85
87
86
-
1. Next, create a KQL table in your database. Call it *OPCUA* and use the following columns.
88
+
1. Next, create a table in your database. Call it *OPCUA* and use the following columns.
87
89
88
90
| Column name | Data type |
89
91
| --- | --- |
@@ -106,7 +108,7 @@ In this section, you create a KQL database in your Microsoft Fabric workspace to
106
108
107
109
Next, return to your eventstream view, where you can add your new KQL table as an eventstream destination.
108
110
109
-
Follow the steps in [Add a KQL Database destination to an eventstream](/fabric/real-time-intelligence/event-streams/add-destination-kql-database?pivots=enhanced-capabilities#direct-ingestion-mode) to add the destination. Keep the following notes in mind:
111
+
Follow the steps in [Add a KQL Database destination to an eventstream](/fabric/real-time-intelligence/event-streams/add-destination-kql-database?pivots=standard-capabilities#direct-ingestion-mode) to add the destination. Keep the following notes in mind:
110
112
111
113
- Use direct ingestion mode.
112
114
- On the **Configure** step, select the *OPCUA* table that you created earlier.
@@ -129,7 +131,7 @@ If you want, you can also view and query this data in your KQL database directly
129
131
130
132
## Create a Real-Time Dashboard
131
133
132
-
In this section, you'll create a new [Real-Time Dashboard](/fabric/real-time-intelligence/dashboard-real-time-create) to visualize your quickstart data. The dashboard will automatically allow filtering by timestamp, and will display visual summaries of temperature and humidity data.
134
+
In this section, you'll create a new [Real-Time Dashboard](/fabric/real-time-intelligence/dashboard-real-time-create) to visualize your quickstart data. The dashboard will allow filtering by asset ID and timestamp, and will display visual summaries of temperature and humidity data.
133
135
134
136
>[!NOTE]
135
137
>You can only create Real-Time Dashboards if your tenant admin has enabled the creation of Real-Time Dashboards in your Fabric tenant. For more information, see [Enable tenant settings in the admin portal](/fabric/real-time-intelligence/dashboard-real-time-create#enable-tenant-settings-in-the-admin-portal).
@@ -142,19 +144,46 @@ Then, follow the steps in the [Add data source](/fabric/real-time-intelligence/d
142
144
143
145
- In the **Data sources** pane, your database will be under **OneLake data hub**.
144
146
147
+
### Configure parameters
148
+
149
+
Next, configure some parameters for your dashboard so that the visuals can be filtered by asset ID and timestamp. The dashboard comes with a default parameter to filter by time range, so you only need to create one that can filter by asset ID.
150
+
151
+
1. Switch to the **Manage** tab, and select **Parameters**. Select **+ Add** to add a new parameter.
152
+
153
+
:::image type="content" source="media/quickstart-get-insights/add-parameter.png" alt-text="Screenshot of adding a parameter to a dashboard.":::
154
+
155
+
1. Create a new parameter with the following characteristics:
156
+
* **Label**: *Asset*
157
+
* **Parameter type**: *Single selection* (already selected by default)
158
+
* **Variable name**: *_asset*
159
+
* **Data type**: *string* (already selected by default)
160
+
* **Source**: *Query*
161
+
* **Data source**: Your database (already selected by default)
162
+
* Select **Edit query** and add the following KQL query.
163
+
164
+
```kql
165
+
OPCUA
166
+
| summarize by AssetId
167
+
```
168
+
* **Value column**: *AssetId*
169
+
* **Default value**: *Select first value of query*
170
+
171
+
1. Select **Done** to save your parameter.
172
+
145
173
### Create line chart tile
146
174
147
-
Next, add a tile to your dashboard to show a line chart of temperature and humidity over time for the selected time range.
175
+
Next, add a tile to your dashboard to show a line chart of temperature and humidity over time for the selected asset and time range.
148
176
149
177
1. Select either **+ Add tile** or **New tile** to add a new tile.
150
178
151
179
:::image type="content" source="media/quickstart-get-insights/add-tile.png" alt-text="Screenshot of adding a tile to a dashboard.":::
152
180
153
-
1. Enter the following KQL query for the tile. This query applies a built-in filter parameter from the dashboard selector for time range, and pulls the resulting records with their timestamp, temperature, and humidity.
181
+
1. Enter the following KQL query for the tile. This query applies filter parameters from the dashboard selectors for time range and asset, and pulls the resulting records with their timestamp, temperature, and humidity.
154
182
155
183
```kql
156
184
OPCUA
157
185
| where Timestamp between (_startTime.._endTime)
186
+
| where AssetId == _asset
158
187
| project Timestamp, Temperature, Humidity
159
188
```
160
189
@@ -188,11 +217,12 @@ Next, create some tiles to display the maximum values of temperature and humidit
188
217
189
218
1. Select **New tile** to create a new tile.
190
219
191
-
1. Enter the following KQL query for the tile. This query applies a built-in filter parameter from the dashboard selector for time range, and takes the highest temperature value from the resulting records.
220
+
1. Enter the following KQL query for the tile. This query applies filter parameters from the dashboard selectors for time range and asset, and takes the highest temperature value from the resulting records.
192
221
193
222
```kql
194
223
OPCUA
195
224
| where Timestamp between (_startTime.._endTime)
225
+
| where AssetId == _asset
196
226
| top 1 by Temperature desc
197
227
| summarize by Temperature
198
228
```
@@ -225,6 +255,7 @@ Next, create some tiles to display the maximum values of temperature and humidit
0 commit comments