last sync: 2023-Jun-19 17:45:01 UTC

Community Policy definition

Deploy Diagnostic Settings for Application Insights to Log Analytics workspace

Name Deploy Diagnostic Settings for Application Insights to Log Analytics workspace
Community-Policy GitHub
Id 55c392c7-ddfc-41fa-8eaf-a96bb54169e0
Version 1.0.0
details on versioning
Category Monitoring
Microsoft docs
Description Deploys the diagnostic settings for Application Insights to stream to a Log Analytics workspace when any Application Insights which is missing this diagnostic settings is created or updated. The policy will set the diagnostic with all metrics and category enabled.
Mode Indexed
Type Custom Community
Effect Default
DeployIfNotExists
Allowed
DeployIfNotExists, AuditIfNotExists, Disabled
Used RBAC Role
Role Name Role Id
Log Analytics Contributor 92aaf0da-9dab-42b6-94a3-d43ce8d16293
Monitoring Contributor 749f88d5-cbae-40b8-bcfc-e573ddc772fa
Rule Aliases THEN-ExistenceCondition (3)
Alias Namespace ResourceType DefaultPath Modifiable
Microsoft.Insights/diagnosticSettings/logs.enabled microsoft.insights diagnosticSettings properties.logs[*].enabled false
Microsoft.Insights/diagnosticSettings/metrics.enabled microsoft.insights diagnosticSettings properties.metrics[*].enabled false
Microsoft.Insights/diagnosticSettings/workspaceId microsoft.insights diagnosticSettings properties.workspaceId false
Rule ResourceTypes IF (1)
Microsoft.Insights/components
JSON