Skip to content

Commit 3417f2c

Browse files
committed
Fix DNS API samples
1 parent 3920f5a commit 3417f2c

File tree

1 file changed

+17
-36
lines changed

1 file changed

+17
-36
lines changed

articles/sentinel/connect-dns-ama.md

Lines changed: 17 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,16 @@ Use the following example as a template to create or update a DCR:
7070

7171
### Request URL and header 
7272

73-
```rest
74-
75-
PUT
76-
77-
https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}?api-version=2019-11-01-preview
73+
```http
74+
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}?api-version=2019-11-01-preview
7875
```
7976

8077
### Request body
8178

82-
```rest
83-
79+
```json
8480
{
81+
"location": "eastus2",
82+
"kind" : "Windows",
8583
"properties": {
8684
"dataSources": {
8785
"windowsEventLogs": [],
@@ -113,9 +111,9 @@ PUT
113111
"destinations": {
114112
"logAnalytics": [
115113
{
116-
"workspaceResourceId": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.OperationalInsights/workspaces/{sentinelWorkspaceName}",
117-
"workspaceId": {WorkspaceGuid}",
118-
"name": "WorkspaceDestination"
114+
"name" : "WorkspaceDestination",
115+
"workspaceId" : "{WorkspaceGuid}",
116+
"workspaceResourceId" : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.OperationalInsights/workspaces/{sentinelWorkspaceName}"
119117
}
120118
]
121119
},
@@ -125,17 +123,12 @@ PUT
125123
"Microsoft-ASimDnsActivityLogs"
126124
],
127125
"destinations": [
128-
" WorkspaceDestination "
126+
"WorkspaceDestination"
129127
]
130128
}
131129
],
132130
},
133-
"location": "eastus2",
134-
"tags": {},
135-
"kind": "Windows",
136-
"id":"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Insights/dataCollectionRules/{workspaceName}-microsoft-sentinel-asimdnsactivitylogs ",
137-
"name": " {workspaceName}-microsoft-sentinel-asimdnsactivitylogs ",
138-
"type": "Microsoft.Insights/dataCollectionRules",
131+
"tags" : {}
139132
}
140133
```
141134

@@ -203,7 +196,7 @@ This filter instructs the connector not to collect EventID 256 or EventID 257 or
203196

204197
**Using the API**:
205198

206-
```rest
199+
```json
207200
"Filters": [
208201
{
209202
"FilterName": "SampleFilter",
@@ -260,32 +253,20 @@ To define different values in a single field, use the **OR** operator.
260253

261254
Review these considerations for [using wildcards](#use-wildcards).
262255

263-
```rest
256+
```json
264257
"Filters": [
265-
266258
{
267-
268259
"FilterName": "SampleFilter",
269-
270260
"Rules": [
271-
272261
{
273-
274262
"Field": "DnsQuery",
275-
276263
"FieldValues": [
277-
278264
"*.microsoft.com", "*.google.com", "facebook.com", "*.amazon.com","center.local"
279-
280-
]
281-
282-
},
283-
284-
}
285-
286-
}
287-
288-
]
265+
]
266+
}
267+
]
268+
}
269+
]
289270
```
290271

291272
## Normalization using ASIM

0 commit comments

Comments
 (0)