Skip to content

Commit 3d94900

Browse files
authored
Update edge-pipeline-configure.md - valid ARM JSON
The edge pipeline ARM template is not a valid one as it's missing the schema and resources fields. Updated to include these wrappers. With this update, the command below will execute correctly `az deployment group create --resource-group <resource-group-name> --template-file <path-to-template>`
1 parent 57d4ae2 commit 3d94900

File tree

1 file changed

+101
-92
lines changed

1 file changed

+101
-92
lines changed

articles/azure-monitor/essentials/edge-pipeline-configure.md

Lines changed: 101 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -374,109 +374,118 @@ Replace the properties in the following table before deploying the template.
374374

375375
```json
376376
{
377-
"type": "Microsoft.monitor/pipelineGroups",
378-
"location": "eastus",
379-
"apiVersion": "2023-10-01-preview",
380-
"name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/Microsoft.ExtendedLocation/customLocations/my-custom-location",
381-
382-
"extendedLocation": {
383-
"name": "my-custom-location",
384-
"type": "CustomLocation"
377+
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
378+
"contentVersion": "1.0.0.0",
379+
"metadata": {
380+
"description": "This template deploys an edge pipeline for azure monitor."
385381
},
386-
"properties": {
387-
"receivers": [
388-
{
389-
"type": "OTLP",
390-
"name": "receiver-OTLP",
391-
"otlp": {
392-
"endpoint": "0.0.0.0:4317"
393-
}
382+
"resources": [
383+
{
384+
"type": "Microsoft.monitor/pipelineGroups",
385+
"location": "eastus",
386+
"apiVersion": "2023-10-01-preview",
387+
"name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/Microsoft.ExtendedLocation/customLocations/my-custom-location",
388+
389+
"extendedLocation": {
390+
"name": "my-custom-location",
391+
"type": "CustomLocation"
394392
},
395-
{
396-
"type": "Syslog",
397-
"name": "receiver-Syslog",
398-
"syslog": {
399-
"endpoint": "0.0.0.0:514"
400-
}
401-
}
402-
],
403-
"processors": [],
404-
"exporters": [
405-
{
406-
"type": "AzureMonitorWorkspaceLogs",
407-
"name": "exporter-log-analytics-workspace",
408-
"azureMonitorWorkspaceLogs": {
409-
"api": {
410-
"dataCollectionEndpointUrl": "https://my-dce-4agr.eastus-1.ingest.monitor.azure.com",
411-
"dataCollectionRule": "dcr-00000000000000000000000000000000",
412-
"stream": "Custom-OTLP",
413-
"cache": {
414-
"maxStorageUsage": "10000",
415-
"retentionPeriod": "60"
416-
},
417-
"schema": {
418-
"recordMap": [
419-
{
420-
"from": "body",
421-
"to": "Body"
422-
},
423-
{
424-
"from": "severity_text",
425-
"to": "SeverityText"
393+
"properties": {
394+
"receivers": [
395+
{
396+
"type": "OTLP",
397+
"name": "receiver-OTLP",
398+
"otlp": {
399+
"endpoint": "0.0.0.0:4317"
400+
}
401+
},
402+
{
403+
"type": "Syslog",
404+
"name": "receiver-Syslog",
405+
"syslog": {
406+
"endpoint": "0.0.0.0:514"
407+
}
408+
}
409+
],
410+
"processors": [],
411+
"exporters": [
412+
{
413+
"type": "AzureMonitorWorkspaceLogs",
414+
"name": "exporter-log-analytics-workspace",
415+
"azureMonitorWorkspaceLogs": {
416+
"api": {
417+
"dataCollectionEndpointUrl": "https://my-dce-4agr.eastus-1.ingest.monitor.azure.com",
418+
"dataCollectionRule": "dcr-00000000000000000000000000000000",
419+
"stream": "Custom-OTLP",
420+
"cache": {
421+
"maxStorageUsage": "10000",
422+
"retentionPeriod": "60"
426423
},
427-
{
428-
"from": "time_unix_nano",
429-
"to": "TimeGenerated"
424+
"schema": {
425+
"recordMap": [
426+
{
427+
"from": "body",
428+
"to": "Body"
429+
},
430+
{
431+
"from": "severity_text",
432+
"to": "SeverityText"
433+
},
434+
{
435+
"from": "time_unix_nano",
436+
"to": "TimeGenerated"
437+
}
438+
]
430439
}
431-
]
440+
}
432441
}
433442
}
434-
}
435-
}
436-
],
437-
"service": {
438-
"pipelines": [
439-
{
440-
"name": "DefaultOTLPLogs",
441-
"receivers": [
442-
"receiver-OTLP"
443-
],
444-
"processors": [],
445-
"exporters": [
446-
"exporter-log-analytics-workspace"
443+
],
444+
"service": {
445+
"pipelines": [
446+
{
447+
"name": "DefaultOTLPLogs",
448+
"receivers": [
449+
"receiver-OTLP"
450+
],
451+
"processors": [],
452+
"exporters": [
453+
"exporter-log-analytics-workspace"
454+
],
455+
"type": "logs"
456+
},
457+
{
458+
"name": "DefaultSyslogs",
459+
"receivers": [
460+
"receiver-Syslog"
461+
],
462+
"processors": [],
463+
"exporters": [
464+
"exporter-log-analytics-workspace"
465+
],
466+
"type": "logs"
467+
}
447468
],
448-
"type": "logs"
469+
"persistence": {
470+
"persistentVolume": "my-persistent-volume"
471+
}
449472
},
450-
{
451-
"name": "DefaultSyslogs",
452-
"receivers": [
453-
"receiver-Syslog"
454-
],
455-
"processors": [],
456-
"exporters": [
457-
"exporter-log-analytics-workspace"
458-
],
459-
"type": "logs"
460-
}
461-
],
462-
"persistence": {
463-
"persistentVolume": "my-persistent-volume"
464-
}
465-
},
466-
"networkingConfigurations": [
467-
{
468-
"externalNetworkingMode": "LoadBalancerOnly",
469-
"routes": [
470-
{
471-
"receiver": "receiver-OTLP"
472-
},
473+
"networkingConfigurations": [
473474
{
474-
"receiver": "receiver-Syslog"
475+
"externalNetworkingMode": "LoadBalancerOnly",
476+
"routes": [
477+
{
478+
"receiver": "receiver-OTLP"
479+
},
480+
{
481+
"receiver": "receiver-Syslog"
482+
}
483+
]
475484
}
476-
]
485+
]
477486
}
478-
]
479-
}
487+
}
488+
]
480489
}
481490
```
482491

0 commit comments

Comments
 (0)