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/essentials/data-collection-rule-edit.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ In this tutorial, you learn how to:
20
20
21
21
## Prerequisites
22
22
To complete this tutorial you need the following:
23
-
- Log Analytics workspace where you have at least [contributor rights](../logs/manage-access.md#manage-access-using-azure-permissions).
23
+
- Log Analytics workspace where you have at least [contributor rights](../logs/manage-access.md#azure-rbac).
24
24
-[Permissions to create Data Collection Rule objects](data-collection-rule-overview.md#permissions) in the workspace.
25
25
- Up to date version of PowerShell. Using Azure Cloud Shell is recommended.
26
26
@@ -39,7 +39,7 @@ Start by setting up a new custom log. Follow [Tutorial: Send custom logs to Azur
39
39
In order to update DCR, we are going to retrieve its content and save it as a file, which can be further edited.
40
40
1. Click the **Cloud Shell** button in the Azure portal and ensure the environment is set to **PowerShell**.
41
41
42
-
:::image type="content" source="../logs/media/tutorial-ingestion-time-transformations-api/open-cloud-shell.png" lightbox="media/tutorial-ingestion-time-transformations-api/open-cloud-shell.png" alt-text="Screenshot of opening cloud shell":::
42
+
:::image type="content" source="../logs/media/tutorial-ingestion-time-transformations-api/open-cloud-shell.png" lightbox="../logs/media/tutorial-ingestion-time-transformations-api/open-cloud-shell.png" alt-text="Screenshot of opening cloud shell":::
43
43
44
44
2. Execute the following commands to retrieve DCR content and save it to a file. Replace `<ResourceId>` with DCR ResourceID and `<FilePath>` with the name of the file to store DCR.
Now, when DCR content is stored as a JSON file, you can use an editor of your choice to make changes in the DCR. You may [prefer to download the file from the Cloud Shell environment](../../cloud-shell/using-the-shell-window#upload-and-download-files.md), if you are using one.
53
+
Now, when DCR content is stored as a JSON file, you can use an editor of your choice to make changes in the DCR. You may [prefer to download the file from the Cloud Shell environment](../../cloud-shell/using-the-shell-window.md#upload-and-download-files), if you are using one.
54
54
55
55
Alternatively you can use code editors supplied with the environment. For example, if you saved your DCR in a file named `temp.dcr` on your Cloud Drive, you could use the following command to open DCR for editing right in the Cloud Shell window:
56
56
```PowerShell
@@ -71,7 +71,7 @@ Let’s modify the KQL transformation within DCR to drop rows where RequestType
71
71
72
72
## Apply changes
73
73
Our final step is to update DCR back in the system. This is accomplished by “PUT” HTTP call to ARM API, with updated DCR content sent in the HTTP request body.
74
-
1. If you are using Azure Cloud Shell, save the file and close the embedded editor, or [upload modified DCR file back to the Cloud Shell environment](../../cloud-shell/using-the-shell-window#upload-and-download-files.md).
74
+
1. If you are using Azure Cloud Shell, save the file and close the embedded editor, or [upload modified DCR file back to the Cloud Shell environment](../../cloud-shell/using-the-shell-window.md#upload-and-download-files).
75
75
2. Execute the following commands to load DCR content from the file and place HTTP call to update the DCR in the system. Replace `<ResourceId>` with DCR ResourceID and `<FilePath>` with the name of the file modified in the previous part of the tutorial. You can omit first two lines if you read and write to the DCR within the same PowerShell session.
76
76
```PowerShell
77
77
$ResourceId = “<ResourceId>” # Resource ID of the DCR to edit
0 commit comments