|
1 | 1 | ---
|
2 |
| -title: 'Time Series Insights Gen1 migration to Azure Data Explorer | Microsoft Docs' |
3 |
| -description: How to migrate Azure Time Series Insights Gen 1 environments to Azure Data Explorer. |
| 2 | +title: 'Time Series Insights Gen1 migration to Real-Time Intelligence in Microsoft Fabric | Microsoft Docs' |
| 3 | +description: How to migrate Azure Time Series Insights Gen 1 environments to Real-Time Intelligence in Microsoft Fabric. |
4 | 4 | ms.service: time-series-insights
|
5 | 5 | author: tedvilutis
|
6 | 6 | ms.author: tvilutis
|
7 | 7 | ms.topic: conceptual
|
8 |
| -ms.date: 3/15/2022 |
| 8 | +ms.date: 6/10/2024 |
9 | 9 | ms.custom: tvilutis
|
10 | 10 | ---
|
11 | 11 |
|
12 |
| -# Migrating Time Series Insights Gen1 to Azure Data Explorer |
| 12 | +# Migrating Time Series Insights Gen1 to Real-Time Intelligence in Microsoft Fabric |
13 | 13 |
|
14 | 14 | [!INCLUDE [retirement](../../includes/tsi-retirement.md)]
|
15 | 15 |
|
16 | 16 | ## Overview
|
17 | 17 |
|
18 |
| -The recommendation is to set up Azure Data Explorer cluster with a new consumer group from the Event Hub or IoT Hub and wait for retention period to pass and fill Azure Data Explorer with the same data as Time Series Insights environment. |
19 |
| -If telemetry data is required to be exported from Time Series Insights environment, the suggestion is to use Time Series Insights Query API to download the events in batches and serialize in required format. |
20 |
| -For reference data, Time Series Insights Explorer or Reference Data API can be used to download reference data set and upload it into Azure Data Explorer as another table. Then, materialized views in Azure Data Explorer can be used to join reference data with telemetry data. Use materialized view with arg_max() aggregation function which will get the latest record per entity, as demonstrated in the following example. For more information about materialized views, read the following documentation: [Materialized views use cases](/azure/data-explorer/kusto/management/materialized-views/materialized-view-overview#materialized-views-use-cases). |
| 18 | +[Eventhouse](/fabric/real-time-intelligence/eventhouse) is the time series database in Real-Time Intelligence. It serves as the target for migrating data away from Time Series Insights. |
21 | 19 |
|
22 |
| -``` |
23 |
| -.create materialized-view MVName on table T |
24 |
| -{ |
25 |
| - T |
26 |
| - | summarize arg_max(Column1,*) by Column2 |
27 |
| -} |
28 |
| -``` |
29 |
| -## Translate Time Series Insights Queries to KQL |
| 20 | +### Prerequisites |
| 21 | + |
| 22 | +* A [workspace](/fabric/get-started/create-workspaces) with a Microsoft Fabric-enabled [capacity](/fabric/enterprise/licenses#capacity) |
| 23 | +* An [event house](/fabric/real-time-intelligence/create-eventhouse) in your workspace |
| 24 | + |
| 25 | +### Ingest new data |
| 26 | + |
| 27 | +Use the following steps to start ingesting new data into your Eventhouse: |
| 28 | + |
| 29 | +1. Configure your [event hub](/azure/event-hubs/event-hubs-about) with a new consumer group. |
| 30 | + |
| 31 | +2. Consume data from the data source and ingest it into your Eventhouse. Refer to the documentation on how to [ingest data from your event hub](/fabric/real-time-intelligence/get-data-event-hub). |
30 | 32 |
|
31 |
| -For queries, the recommendation is to use KQL in Azure Data Explorer. |
| 33 | +### Migrate historical data from Time Series Insights |
| 34 | + |
| 35 | +If you need to export data from your Time Series Insights environment, you can use the Time Series Insights Query API to download the events in batches and serialize them in the required format. Depending on where you stored the exported data, you can ingest the data from [Azure Storage](/fabric/real-time-intelligence/get-data-azure-storage), [local files](/fabric/real-time-intelligence/get-data-local-file), or [OneLake](/fabric/real-time-intelligence/get-data-onelake). |
| 36 | + |
| 37 | +### Migrate reference data |
| 38 | + |
| 39 | +Use the following steps to migrate reference data: |
| 40 | + |
| 41 | +1. Use Time Series Insights Explorer or the Reference Data API to download the reference data set. |
| 42 | + |
| 43 | +2. Once you have the reference data set, [upload it to your Eventhouse](/fabric/real-time-intelligence/get-data-local-file) as another table. By uploading the reference data set, you can access and utilize it within your Eventhouse environment. |
| 44 | + |
| 45 | +## Translate Time Series Insights Queries to Kusto Query Language |
| 46 | + |
| 47 | +For queries, the recommendation is to use Kusto Query Language in Eventhouse. |
32 | 48 |
|
33 | 49 | #### Events
|
34 | 50 | ```TSQ
|
|
154 | 170 | _meas3,
|
155 | 171 | | sort by _dim0 nulls last, _dim1 nulls last
|
156 | 172 | ```
|
157 |
| - |
|
0 commit comments