Skip to content

Commit 2609215

Browse files
Merge pull request #278491 from bwren/docs-editor/tutorial-logs-ingestion-api-1718655208
Update tutorial-logs-ingestion-api.md
2 parents 6ced2ca + 9d02237 commit 2609215

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

articles/azure-monitor/logs/tutorial-logs-ingestion-api.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ The [DCR](../essentials/data-collection-rule-overview.md) defines how the data w
224224

225225
```json
226226
{
227-
"$schema": "https://schema.management.azure.com/schemas/2023-03-11/deploymentTemplate.json#",
227+
"$schema": "https://schema.management.azure.com/schemas/2019-08-01/deploymentTemplate.json#",
228228
"contentVersion": "1.0.0.0",
229229
"parameters": {
230230
"dataCollectionRuleName": {
@@ -244,22 +244,16 @@ The [DCR](../essentials/data-collection-rule-overview.md) defines how the data w
244244
"metadata": {
245245
"description": "Specifies the Azure resource ID of the Log Analytics workspace to use."
246246
}
247-
},
248-
"endpointResourceId": {
249-
"type": "string",
250-
"metadata": {
251-
"description": "Specifies the Azure resource ID of the Data Collection Endpoint to use."
252-
}
253247
}
254248
},
255249
"resources": [
256250
{
257251
"type": "Microsoft.Insights/dataCollectionRules",
258252
"name": "[parameters('dataCollectionRuleName')]",
259253
"location": "[parameters('location')]",
260-
"apiVersion": "2021-09-01-preview",
254+
"apiVersion": "2023-03-11",
255+
"kind": "Direct",
261256
"properties": {
262-
"dataCollectionEndpointId": "[parameters('endpointResourceId')]",
263257
"streamDeclarations": {
264258
"Custom-MyTableRawData": {
265259
"columns": [
@@ -329,7 +323,7 @@ The [DCR](../essentials/data-collection-rule-overview.md) defines how the data w
329323

330324
```json
331325
{
332-
"$schema": "https://schema.management.azure.com/schemas/2023-03-11/deploymentTemplate.json#",
326+
"$schema": "https://schema.management.azure.com/schemas/2019-08-01/deploymentTemplate.json#",
333327
"contentVersion": "1.0.0.0",
334328
"parameters": {
335329
"dataCollectionRuleName": {
@@ -349,15 +343,23 @@ The [DCR](../essentials/data-collection-rule-overview.md) defines how the data w
349343
"metadata": {
350344
"description": "Specifies the Azure resource ID of the Log Analytics workspace to use."
351345
}
346+
},
347+
"endpointResourceId": {
348+
"type": "string",
349+
"metadata": {
350+
"description": "Specifies the Azure resource ID of the Data Collection Endpoint to use."
351+
}
352352
}
353353
},
354354
"resources": [
355355
{
356356
"type": "Microsoft.Insights/dataCollectionRules",
357357
"name": "[parameters('dataCollectionRuleName')]",
358358
"location": "[parameters('location')]",
359-
"apiVersion": "2021-09-01-preview",
359+
"apiVersion": "2023-03-11",
360+
"kind": "Direct",
360361
"properties": {
362+
"dataCollectionEndpointId": "[parameters('endpointResourceId')]",
361363
"streamDeclarations": {
362364
"Custom-MyTableRawData": {
363365
"columns": [

0 commit comments

Comments
 (0)