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
+18-23Lines changed: 18 additions & 23 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: 01/24/2025
9
+
ms.date: 01/27/2025
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
---
@@ -39,15 +39,16 @@ In this section, you create an eventstream that will be used to bring your data
39
39
40
40
Start by navigating to the [Real-Time hub in Microsoft Fabric](https://app.powerbi.com/workloads/oneriver/hub?experience=fabric-developer).
41
41
42
-
Follow the steps in [Get events from Azure Event Hubs into Real-time hub](/fabric/real-time-hub/add-source-azure-event-hubs) to add your event hub as a data source for a new eventstream in your Fabric workspace. Keep the following notes in mind:
42
+
Follow the steps in [Get events from Azure Event Hubs into Real-time hub](/fabric/real-time-hub/add-source-azure-event-hubs#microsoft-sources-page) to add your event hub as a data source for a new eventstream in your Fabric workspace. Keep the following notes in mind:
43
43
44
+
* For **Azure Event Hub Key**, use the default selection (*RootManageSharedAccessKey*).
44
45
* You can edit the **Eventstream name** to something friendly in the **Stream details** pane.
45
46
* For **Connection**, create a new connection with Shared Access Key authentication.
46
47
* Make sure local authentication is enabled on your Event Hubs namespace. You can set this from its Overview page in the Azure portal.
47
48
* For **Consumer group**, use the default selection (*$Default*).
48
-
* For **Data format**, choose *Json* (it might be selected already by default).
49
+
* For **Data format**, use the default selection (*Json*).
49
50
50
-
After creating the eventstream, open it to see it in the authoring canvas. Your Azure event hub is visible as a source for the eventstream.
51
+
After connecting the eventstream, use the **Open Eventstream** button to see it in the authoring canvas. Your Azure event hub is visible as a source for the eventstream. (You also have the option edit the source name to something friendly from this canvas if you want.)
51
52
52
53
:::image type="content" source="media/quickstart-get-insights/source-added.png" alt-text="Screenshot of the eventstream with an AzureEventHub source.":::
53
54
@@ -70,7 +71,7 @@ In this section, you create a KQL database in your Microsoft Fabric workspace to
70
71
71
72
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**.
72
73
73
-
1. Next, create a table in your database. Call it *OPCUA* and use the following columns.
74
+
1. Next, follow the steps in [Create an empty table in your KQL database](/fabric/real-time-intelligence/create-empty-table#create-an-empty-table-in-your-kql-database) to create a table in your database. Call it *OPCUA* and use the following columns.
74
75
75
76
| Column name | Data type |
76
77
| --- | --- |
@@ -81,40 +82,34 @@ In this section, you create a KQL database in your Microsoft Fabric workspace to
81
82
| EnergyUse | decimal |
82
83
| Timestamp | datetime |
83
84
84
-
1. After the *OPCUA* table has been created, select it and use the **Explore your data** button to open a query window for the table.
85
+
1. After the *OPCUA* table has been created, select it and use the **Query with code** button to open any sample query in a new query window for the table.
85
86
86
-
:::image type="content" source="media/quickstart-get-insights/explore-your-data.png" alt-text="Screenshot showing the Explore your data button.":::
87
+
:::image type="content" source="media/quickstart-get-insights/query-with-code.png" alt-text="Screenshot showing the Query with code button.":::
87
88
88
-
1.Run the following KQL query to create a data mapping for your table. The data mapping will be called *opcua_mapping*.
89
+
1.Clear the sample query, and run the following KQL query to create a data mapping for your table. The data mapping will be called *opcua_mapping*.
Next, return to your eventstream view, where you can add your new KQL table as an eventstream destination.
97
+
Next, add your eventstream as a data source for your KQL table.
97
98
98
-
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:
99
+
Follow the steps in [Get data from Eventstream](/fabric/real-time-intelligence/get-data-eventstream#source) to add the data source.
99
100
100
-
- Use direct ingestion mode.
101
-
- On the **Configure** step, select the *OPCUA* table that you created earlier.
101
+
Keep the following notes in mind:
102
+
103
+
- Use the *OPCUA* table as the destination table and your eventstream as the source.
102
104
- On the **Inspect** step, open the **Advanced** options. Under **Mapping**, select **Existing mapping** and choose *opcua_mapping*.
103
105
104
106
:::image type="content" source="media/quickstart-get-insights/existing-mapping.png" alt-text="Screenshot adding an existing mapping.":::
105
107
106
-
>[!TIP]
107
-
>If no existing mappings are found, try refreshing the eventstream editor and restarting the steps to add the destination. Alternatively, you can initiate this same configuration process from the KQL table instead of from the eventstream, as described in [Get data from Eventstream](/fabric/real-time-intelligence/get-data-eventstream).
108
-
109
-
After completing this flow, the KQL table is visible in the eventstream live view as a destination.
110
-
111
-
Wait a few minutes for data to propagate. Then, select the KQL destination and refresh the **Data preview** to see the processed JSON data from the eventstream appearing in the table.
112
-
113
-
:::image type="content" source="media/quickstart-get-insights/destination-added-data.png" alt-text="Screenshot of the eventstream with data in the KQL database destination.":::
108
+
After completing this setup, data begins to flow through your eventstream and is processed into your KQL table.
114
109
115
-
If you want, you can also view and query this data in your KQL database directly.
110
+
Wait a few minutes for data to propagate. Then, select the *OPCUA* table to see a preview of the data from the eventstream appearing in the table.
116
111
117
-
:::image type="content" source="media/quickstart-get-insights/query-kql.png" alt-text="Screenshot of the same data being queried from the KQL database.":::
112
+
:::image type="content" source="media/quickstart-get-insights/kql-data-preview.png" alt-text="Screenshot of the OPCUA table with data.":::
0 commit comments