@@ -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,20 +244,14 @@ 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 " ,
261
255
"properties" : {
262
256
"streamDeclarations" : {
263
257
"Custom-MyTableRawData" : {
@@ -328,7 +322,7 @@ The [DCR](../essentials/data-collection-rule-overview.md) defines how the data w
328
322
329
323
```json
330
324
{
331
- "$schema" : " https://schema.management.azure.com/schemas/2023-03-11 /deploymentTemplate.json#" ,
325
+ "$schema" : " https://schema.management.azure.com/schemas/2019-08-01 /deploymentTemplate.json#" ,
332
326
"contentVersion" : " 1.0.0.0" ,
333
327
"parameters" : {
334
328
"dataCollectionRuleName" : {
@@ -348,14 +342,20 @@ The [DCR](../essentials/data-collection-rule-overview.md) defines how the data w
348
342
"metadata" : {
349
343
"description" : " Specifies the Azure resource ID of the Log Analytics workspace to use."
350
344
}
345
+ },
346
+ "endpointResourceId" : {
347
+ "type" : " string" ,
348
+ "metadata" : {
349
+ "description" : " Specifies the Azure resource ID of the Data Collection Endpoint to use."
350
+ }
351
351
}
352
352
},
353
353
"resources" : [
354
354
{
355
355
"type" : " Microsoft.Insights/dataCollectionRules" ,
356
356
"name" : " [parameters('dataCollectionRuleName')]" ,
357
357
"location" : " [parameters('location')]" ,
358
- "apiVersion" : " 2021-09-01-preview " ,
358
+ "apiVersion" : " 2023-03-11 " ,
359
359
"properties" : {
360
360
"dataCollectionEndpointId" : " [parameters('endpointResourceId')]" ,
361
361
"streamDeclarations" : {
0 commit comments