Skip to content

Commit 354295f

Browse files
committed
Update Fabric flow
1 parent 18b2f19 commit 354295f

File tree

7 files changed

+18
-23
lines changed

7 files changed

+18
-23
lines changed
1.65 KB
Loading
460 KB
Loading
292 KB
Loading

articles/iot-operations/get-started-end-to-end-sample/quickstart-get-insights.md

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: baanders
66
ms.topic: quickstart
77
ms.custom:
88
- ignite-2023
9-
ms.date: 01/24/2025
9+
ms.date: 01/27/2025
1010

1111
#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.
1212
---
@@ -39,15 +39,16 @@ In this section, you create an eventstream that will be used to bring your data
3939

4040
Start by navigating to the [Real-Time hub in Microsoft Fabric](https://app.powerbi.com/workloads/oneriver/hub?experience=fabric-developer).
4141

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:
4343

44+
* For **Azure Event Hub Key**, use the default selection (*RootManageSharedAccessKey*).
4445
* You can edit the **Eventstream name** to something friendly in the **Stream details** pane.
4546
* For **Connection**, create a new connection with Shared Access Key authentication.
4647
* Make sure local authentication is enabled on your Event Hubs namespace. You can set this from its Overview page in the Azure portal.
4748
* 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*).
4950

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.)
5152

5253
:::image type="content" source="media/quickstart-get-insights/source-added.png" alt-text="Screenshot of the eventstream with an AzureEventHub source.":::
5354

@@ -70,7 +71,7 @@ In this section, you create a KQL database in your Microsoft Fabric workspace to
7071

7172
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**.
7273

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.
7475

7576
| Column name | Data type |
7677
| --- | --- |
@@ -81,40 +82,34 @@ In this section, you create a KQL database in your Microsoft Fabric workspace to
8182
| EnergyUse | decimal |
8283
| Timestamp | datetime |
8384

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.
8586

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.":::
8788

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*.
8990

9091
```kql
9192
.create table ['OPCUA'] ingestion json mapping 'opcua_mapping' '[{"column":"AssetId", "Properties":{"Path":"$[\'AssetId\']"}},{"column":"Spike", "Properties":{"Path":"$.Spike"}},{"column":"Temperature", "Properties":{"Path":"$.TemperatureF"}},{"column":"FillWeight", "Properties":{"Path":"$.FillWeight.Value"}},{"column":"EnergyUse", "Properties":{"Path":"$.EnergyUse.Value"}},{"column":"Timestamp", "Properties":{"Path":"$[\'EventProcessedUtcTime\']"}}]'
9293
```
9394
94-
### Add data table as a destination
95+
### Add eventstream data to KQL database
9596
96-
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.
9798
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.
99100
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.
102104
- On the **Inspect** step, open the **Advanced** options. Under **Mapping**, select **Existing mapping** and choose *opcua_mapping*.
103105
104106
:::image type="content" source="media/quickstart-get-insights/existing-mapping.png" alt-text="Screenshot adding an existing mapping.":::
105107
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.
114109
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.
116111
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.":::
118113
119114
## Create a Real-Time Dashboard
120115

0 commit comments

Comments
 (0)