@@ -224,7 +224,7 @@ The [DCR](../essentials/data-collection-rule-overview.md) defines how the data w
224
224
225
225
```json
226
226
{
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#" ,
228
228
"contentVersion" : " 1.0.0.0" ,
229
229
"parameters" : {
230
230
"dataCollectionRuleName" : {
@@ -244,22 +244,16 @@ The [DCR](../essentials/data-collection-rule-overview.md) defines how the data w
244
244
"metadata" : {
245
245
"description" : " Specifies the Azure resource ID of the Log Analytics workspace to use."
246
246
}
247
- },
248
- "endpointResourceId" : {
249
- "type" : " string" ,
250
- "metadata" : {
251
- "description" : " Specifies the Azure resource ID of the Data Collection Endpoint to use."
252
- }
253
247
}
254
248
},
255
249
"resources" : [
256
250
{
257
251
"type" : " Microsoft.Insights/dataCollectionRules" ,
258
252
"name" : " [parameters('dataCollectionRuleName')]" ,
259
253
"location" : " [parameters('location')]" ,
260
- "apiVersion" : " 2021-09-01-preview" ,
254
+ "apiVersion" : " 2023-03-11" ,
255
+ "kind" : " Direct" ,
261
256
"properties" : {
262
- "dataCollectionEndpointId" : " [parameters('endpointResourceId')]" ,
263
257
"streamDeclarations" : {
264
258
"Custom-MyTableRawData" : {
265
259
"columns" : [
@@ -329,7 +323,7 @@ The [DCR](../essentials/data-collection-rule-overview.md) defines how the data w
329
323
330
324
```json
331
325
{
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#" ,
333
327
"contentVersion" : " 1.0.0.0" ,
334
328
"parameters" : {
335
329
"dataCollectionRuleName" : {
@@ -349,15 +343,23 @@ The [DCR](../essentials/data-collection-rule-overview.md) defines how the data w
349
343
"metadata" : {
350
344
"description" : " Specifies the Azure resource ID of the Log Analytics workspace to use."
351
345
}
346
+ },
347
+ "endpointResourceId" : {
348
+ "type" : " string" ,
349
+ "metadata" : {
350
+ "description" : " Specifies the Azure resource ID of the Data Collection Endpoint to use."
351
+ }
352
352
}
353
353
},
354
354
"resources" : [
355
355
{
356
356
"type" : " Microsoft.Insights/dataCollectionRules" ,
357
357
"name" : " [parameters('dataCollectionRuleName')]" ,
358
358
"location" : " [parameters('location')]" ,
359
- "apiVersion" : " 2021-09-01-preview" ,
359
+ "apiVersion" : " 2023-03-11" ,
360
+ "kind" : " Direct" ,
360
361
"properties" : {
362
+ "dataCollectionEndpointId" : " [parameters('endpointResourceId')]" ,
361
363
"streamDeclarations" : {
362
364
"Custom-MyTableRawData" : {
363
365
"columns" : [
0 commit comments