Skip to content

Commit 4e10032

Browse files
author
yelevin
committed
Example
1 parent d2bc1bb commit 4e10032

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

articles/sentinel/connect-cef-ama.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,17 @@ The following is an example of a DCR creation request:
275275
##### Create the request URL and header
276276

277277
1. Copy the request URL and header below by selecting the *copy* icon in the upper right corner of the frame.
278+
279+
```http
280+
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}?api-version=2022-06-01
281+
```
282+
278283
- Substitute the appropriate values for the `{subscriptionId}` and `{resourceGroupName}` placeholders.
279284
- Enter a name of your choice for the DCR in place of the `{dataCollectionRuleName}` placeholder.
280285
286+
Example:
281287
```http
282-
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}?api-version=2022-06-01
288+
PUT https://management.azure.com/subscriptions/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/resourceGroups/ContosoRG/providers/Microsoft.Insights/dataCollectionRules/Contoso-DCR-01?api-version=2022-06-01
283289
```
284290
285291
1. Paste the request URL and header in a REST API client of your choosing.
@@ -355,8 +361,8 @@ Here's the response you should receive according to the sample request above:
355361
},
356362
"location": "centralus",
357363
"kind": "Linux",
358-
"id": "/subscriptions/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/resourceGroups/ContosoRG/providers/Microsoft.Insights/dataCollectionRules/Contoso-DCR",
359-
"name": "Contoso-DCR",
364+
"id": "/subscriptions/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/resourceGroups/ContosoRG/providers/Microsoft.Insights/dataCollectionRules/Contoso-DCR-01",
365+
"name": "Contoso-DCR-01",
360366
"type": "Microsoft.Insights/dataCollectionRules",
361367
"etag": "\"00000000-0000-0000-0000-000000000000\"",
362368
"systemData": {
@@ -374,15 +380,15 @@ This procedure follows the same steps as creating the DCR.
374380

375381
```http
376382
PUT
377-
https://management.azure.com/subscriptions/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/resourceGroups/ContosoRG/providers/Microsoft.Compute/virtualMachines/My-Log-Forwarder/providers/Microsoft.Insights/dataCollectionRuleAssociations/contoso-dcr-assoc?api-version=2022-06-01
383+
https://management.azure.com/subscriptions/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/resourceGroups/ContosoRG/providers/Microsoft.Compute/virtualMachines/LogForwarder-VM-1/providers/Microsoft.Insights/dataCollectionRuleAssociations/contoso-dcr-assoc?api-version=2022-06-01
378384
```
379385

380386
##### Request body
381387

382388
```json
383389
{
384390
"properties": {
385-
"dataCollectionRuleId": "/subscriptions/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/resourceGroups/ContosoRG/providers/Microsoft.Insights/dataCollectionRules/contoso-dcr"
391+
"dataCollectionRuleId": "/subscriptions/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/resourceGroups/ContosoRG/providers/Microsoft.Insights/dataCollectionRules/Contoso-DCR-01"
386392
}
387393
}
388394
```
@@ -392,9 +398,9 @@ Here's a sample response:
392398
```json
393399
{
394400
"properties": {
395-
"dataCollectionRuleId": "/subscriptions/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/resourceGroups/ContosoRG/providers/Microsoft.Insights/dataCollectionRules/contoso-dcr"
401+
"dataCollectionRuleId": "/subscriptions/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/resourceGroups/ContosoRG/providers/Microsoft.Insights/dataCollectionRules/Contoso-DCR-01"
396402
},
397-
"id": "/subscriptions/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/resourceGroups/ContosoRG/providers/Microsoft.Compute/virtualMachines/My-Log-Forwarder/providers/Microsoft.Insights/dataCollectionRuleAssociations/contoso-dcr-assoc",
403+
"id": "/subscriptions/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/resourceGroups/ContosoRG/providers/Microsoft.Compute/virtualMachines/LogForwarder-VM-1/providers/Microsoft.Insights/dataCollectionRuleAssociations/contoso-dcr-assoc",
398404
"name": "contoso-dcr-assoc",
399405
"type": "Microsoft.Insights/dataCollectionRuleAssociations",
400406
"etag": "\"00000000-0000-0000-0000-000000000000\"",

0 commit comments

Comments
 (0)