Skip to content

Commit 17b300c

Browse files
committed
fixes
1 parent 5dac79b commit 17b300c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/azure-monitor/essentials/data-collection-rule-edit.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ In this tutorial, you learn how to:
2020
2121
## Prerequisites
2222
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).
2424
- [Permissions to create Data Collection Rule objects](data-collection-rule-overview.md#permissions) in the workspace.
2525
- Up to date version of PowerShell. Using Azure Cloud Shell is recommended.
2626

@@ -39,7 +39,7 @@ Start by setting up a new custom log. Follow [Tutorial: Send custom logs to Azur
3939
In order to update DCR, we are going to retrieve its content and save it as a file, which can be further edited.
4040
1. Click the **Cloud Shell** button in the Azure portal and ensure the environment is set to **PowerShell**.
4141

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

4444
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.
4545

@@ -50,7 +50,7 @@ $DCR = Invoke-AzRestMethod -Path ("$ResourceId"+"?api-version=2021-09-01-preview
5050
$DCR.Content | ConvertFrom-Json | ConvertTo-Json -Depth 20 | Out-File -FilePath $FilePath
5151
```
5252
## Edit DCR
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#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.
5454

5555
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:
5656
```PowerShell
@@ -71,7 +71,7 @@ Let’s modify the KQL transformation within DCR to drop rows where RequestType
7171

7272
## Apply changes
7373
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).
7575
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.
7676
```PowerShell
7777
$ResourceId = “<ResourceId>” # Resource ID of the DCR to edit

0 commit comments

Comments
 (0)