last sync: 2025-Aug-20 17:22:59 UTC

Deploy Diagnostic Settings for ExpressRoute Connection to Log Analytics workspace

Community Policy definition

Source Repository Community-Policy GitHub
JSON Community-Policy GitHub
Deploy policy 9173a8d2-75d3-41fa-8602-242ada5a29a7 (1.0.0) to Azure
Display name Deploy Diagnostic Settings for ExpressRoute Connection to Log Analytics workspace
Id 9173a8d2-75d3-41fa-8602-242ada5a29a7
Version 1.0.0
Details on versioning
Category Monitoring
Microsoft Learn
Description Deploys the diagnostic settings for ExpressRoute Connections to stream to a Log Analytics workspace when any ExpressRoute Connections which is missing this diagnostic settings is created or updated. The policy will set the diagnostic with all metrics enabled.
Mode Indexed
Type Custom Community
Effect Default
DeployIfNotExists
Allowed
DeployIfNotExists, AuditIfNotExists, Disabled
RBAC role(s)
Role Name Role Id
Log Analytics Contributor 92aaf0da-9dab-42b6-94a3-d43ce8d16293
Monitoring Contributor 749f88d5-cbae-40b8-bcfc-e573ddc772fa
Rule aliases IF (1)
Alias Namespace ResourceType Path PathIsDefault DefaultPath Modifiable
Microsoft.Network/connections/connectionType Microsoft.Network connections properties.connectionType True False
THEN-ExistenceCondition (2)
Alias Namespace ResourceType Path PathIsDefault DefaultPath Modifiable
Microsoft.Insights/diagnosticSettings/metrics.enabled microsoft.insights diagnosticSettings properties.metrics[*].enabled True False
Microsoft.Insights/diagnosticSettings/workspaceId microsoft.insights diagnosticSettings properties.workspaceId True False
Rule resource types IF (1)
Microsoft.Network/connections
JSON
EPAC
Deploy policy 9173a8d2-75d3-41fa-8602-242ada5a29a7 (1.0.0) to Azure