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/azure-monitor/logs/tutorial-workspace-transformations-api.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,19 @@
1
1
---
2
-
title: Tutorial - Add ingestion-time transformation to Azure Monitor Logs using resource manager templates
3
-
description: Describes how to add a custom transformation to data flowing through Azure Monitor Logs using resource manager templates.
2
+
title: Tutorial - Add ingestion-time transformation to Azure Monitor Logs using Resource Manager templates
3
+
description: Describes how to add a custom transformation to data flowing through Azure Monitor Logs using Resource Manager templates.
4
4
ms.topic: tutorial
5
5
author: bwren
6
6
ms.author: bwren
7
7
ms.date: 07/01/2022
8
8
---
9
9
10
-
# Tutorial: Add transformation in workspace data collection rule to Azure Monitor using resource manager templates
11
-
This tutorial walks you through configuration of a sample [transformation in a workspace data collection rule](../essentials/data-collection-transformations.md) using resource manager templates. [Transformations](../essentials/data-collection-transformations.md) in Azure Monitor allow you to filter or modify incoming data before it's sent to its destination. Workspace transformations provide support for [ingestion-time transformations](../essentials/data-collection-transformations.md) for workflows that don't yet use the [Azure Monitor data ingestion pipeline](../essentials/data-collection.md).
10
+
# Tutorial: Add transformation in workspace data collection rule to Azure Monitor using Resource Manager templates
11
+
This tutorial walks you through configuration of a sample [transformation in a workspace data collection rule](../essentials/data-collection-transformations.md) using Resource Manager templates. [Transformations](../essentials/data-collection-transformations.md) in Azure Monitor allow you to filter or modify incoming data before it's sent to its destination. Workspace transformations provide support for [ingestion-time transformations](../essentials/data-collection-transformations.md) for workflows that don't yet use the [Azure Monitor data ingestion pipeline](../essentials/data-collection.md).
12
12
13
-
Workspace transformations are stored together in a single [data collection rule (DCR)](../essentials/data-collection-rule-overview.md) for the workspace, called the workspace DCR. Each transformation is associated with a particular table. The transformation will be applied to all data sent to this table from any workflow not using a DCR.
13
+
Workspace transformations are stored together in a single [data collection rule (DCR)](../essentials/data-collection-rule-overview.md) for the workspace, called the workspace DCR. Each transformation is associated with a particular table. The transformation is applied to all data sent to this table from any workflow not using a DCR.
14
14
15
15
> [!NOTE]
16
-
> This tutorial uses resource manager templates and REST API to configure a workspace transformation. See [Tutorial: Add transformation in workspace data collection rule to Azure Monitor using the Azure portal](tutorial-workspace-transformations-portal.md) for the same tutorial using the Azure portal.
16
+
> This tutorial uses Resource Manager templates and REST API to configure a workspace transformation. See [Tutorial: Add transformation in workspace data collection rule to Azure Monitor using the Azure portal](tutorial-workspace-transformations-portal.md) for the same tutorial using the Azure portal.
17
17
18
18
In this tutorial, you learn to:
19
19
@@ -23,7 +23,7 @@ In this tutorial, you learn to:
23
23
24
24
25
25
> [!NOTE]
26
-
> This tutorial uses PowerShell from Azure Cloud Shell to make REST API calls using the Azure Monitor **Tables** API and the Azure portal to install resource manager templates. You can use any other method to make these calls.
26
+
> This tutorial uses PowerShell from Azure Cloud Shell to make REST API calls using the Azure Monitor **Tables** API and the Azure portal to install Resource Manager templates. You can use any other method to make these calls.
27
27
28
28
## Prerequisites
29
29
To complete this tutorial, you need the following:
@@ -66,7 +66,7 @@ Use the **Tables - Update** API to configure the table with the PowerShell code
66
66
67
67
1. Click the **Cloud Shell** button in the Azure portal and ensure the environment is set to **PowerShell**.
68
68
69
-
:::image type="content" source="media/tutorial-workspace-transformations-api/open-cloud-shell.png" lightbox="media/tutorial-workspace-transformations-api/open-cloud-shell.png" alt-text="Screenshot of opening cloud shell.":::
69
+
:::image type="content" source="media/tutorial-workspace-transformations-api/open-cloud-shell.png" lightbox="media/tutorial-workspace-transformations-api/open-cloud-shell.png" alt-text="Screenshot of opening Cloud Shell.":::
70
70
71
71
2. Copy the following PowerShell code and replace the **Path** parameter with the details for your workspace.
72
72
@@ -93,9 +93,9 @@ Use the **Tables - Update** API to configure the table with the PowerShell code
93
93
Invoke-AzRestMethod -Path "/subscriptions/{subscription}/resourcegroups/{resourcegroup}/providers/microsoft.operationalinsights/workspaces/{workspace}/tables/LAQueryLogs?api-version=2021-12-01-preview" -Method PUT -payload $tableParams
94
94
```
95
95
96
-
3. Paste the code into the cloud shell prompt to run it.
96
+
3. Paste the code into the Cloud Shell prompt to run it.
97
97
98
-
:::image type="content" source="media/tutorial-workspace-transformations-api/cloud-shell-script.png" lightbox="media/tutorial-workspace-transformations-api/cloud-shell-script.png" alt-text="Screenshot of script in cloud shell.":::
98
+
:::image type="content" source="media/tutorial-workspace-transformations-api/cloud-shell-script.png" lightbox="media/tutorial-workspace-transformations-api/cloud-shell-script.png" alt-text="Screenshot of script in Cloud Shell.":::
99
99
100
100
4. You can verify that the column was added by going to the **Log Analytics workspace** menu in the Azure portal. Select **Logs** to open Log Analytics and then expand the `LAQueryLogs` table to view its columns.
101
101
@@ -157,9 +157,9 @@ Since this is the first transformation in the workspace, you need to create a [w
157
157
158
158
:::image type="content" source="media/tutorial-workspace-transformations-api/build-custom-template.png" lightbox="media/tutorial-workspace-transformations-api/build-custom-template.png" alt-text="Screenshot to build template in the editor.":::
159
159
160
-
3. Paste the resource manager template below into the editor and then click **Save**. This template defines the DCR and contains the transformation query. You don't need to modify this template since it will collect values for its parameters.
160
+
3. Paste the Resource Manager template below into the editor and then click **Save**. This template defines the DCR and contains the transformation query. You don't need to modify this template since it will collect values for its parameters.
161
161
162
-
:::image type="content" source="media/tutorial-workspace-transformations-api/edit-template.png" lightbox="media/tutorial-workspace-transformations-api/edit-template.png" alt-text="Screenshot to edit resource manager template.":::
162
+
:::image type="content" source="media/tutorial-workspace-transformations-api/edit-template.png" lightbox="media/tutorial-workspace-transformations-api/edit-template.png" alt-text="Screenshot to edit Resource Manager template.":::
163
163
164
164
165
165
```json
@@ -253,7 +253,7 @@ The final step to enable the transformation is to link the DCR to the workspace.
253
253
254
254
Use the **Workspaces - Update** API to configure the table with the PowerShell code below.
255
255
256
-
1. Click the **Cloud shell** button to open cloud shell again. Copy the following PowerShell code and replace the parameters with values for your workspace and DCR.
256
+
1. Click the **Cloud Shell** button to open Cloud Shell again. Copy the following PowerShell code and replace the parameters with values for your workspace and DCR.
257
257
258
258
```PowerShell
259
259
$defaultDcrParams = @'
@@ -267,7 +267,7 @@ Use the **Workspaces - Update** API to configure the table with the PowerShell c
2. Paste the code into the cloud shell prompt to run it.
270
+
2. Paste the code into the Cloud Shell prompt to run it.
271
271
272
272
:::image type="content" source="media/tutorial-workspace-transformations-api/cloud-shell-script-link-workspace.png" lightbox="media/tutorial-workspace-transformations-api/cloud-shell-script-link-workspace.png" alt-text="Screenshot of script to link workspace to DCR.":::
0 commit comments