Skip to content

Commit 87c61ce

Browse files
committed
acrolinx
1 parent e0912d8 commit 87c61ce

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

articles/azure-monitor/logs/tutorial-workspace-transformations-api.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
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.
44
ms.topic: tutorial
55
author: bwren
66
ms.author: bwren
77
ms.date: 07/01/2022
88
---
99

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

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

1515
> [!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.
1717
1818
In this tutorial, you learn to:
1919

@@ -23,7 +23,7 @@ In this tutorial, you learn to:
2323
2424

2525
> [!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.
2727
2828
## Prerequisites
2929
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
6666
6767
1. Click the **Cloud Shell** button in the Azure portal and ensure the environment is set to **PowerShell**.
6868

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

7171
2. Copy the following PowerShell code and replace the **Path** parameter with the details for your workspace.
7272

@@ -93,9 +93,9 @@ Use the **Tables - Update** API to configure the table with the PowerShell code
9393
Invoke-AzRestMethod -Path "/subscriptions/{subscription}/resourcegroups/{resourcegroup}/providers/microsoft.operationalinsights/workspaces/{workspace}/tables/LAQueryLogs?api-version=2021-12-01-preview" -Method PUT -payload $tableParams
9494
```
9595
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.
9797
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.":::
9999
100100
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.
101101
@@ -157,9 +157,9 @@ Since this is the first transformation in the workspace, you need to create a [w
157157

158158
:::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.":::
159159

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

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

164164

165165
```json
@@ -253,7 +253,7 @@ The final step to enable the transformation is to link the DCR to the workspace.
253253

254254
Use the **Workspaces - Update** API to configure the table with the PowerShell code below.
255255

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

258258
```PowerShell
259259
$defaultDcrParams = @'
@@ -267,7 +267,7 @@ Use the **Workspaces - Update** API to configure the table with the PowerShell c
267267
Invoke-AzRestMethod -Path "/subscriptions/{subscription}/resourcegroups/{resourcegroup}/providers/microsoft.operationalinsights/workspaces/{workspace}?api-version=2021-12-01-preview" -Method PATCH -payload $defaultDcrParams
268268
```
269269

270-
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.
271271

272272
:::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.":::
273273

0 commit comments

Comments
 (0)