last sync: 2025-Jun-16 17:23:21 UTC

Deploy Diagnostic Settings for WVD Host Pools to Log Analytics workspace

Community Policy definition

Source Repository Community-Policy GitHub
JSON Community-Policy GitHub
Deploy policy 5ca82ab1-2120-47cb-8ac7-b62c4dfc3883 (1.0.0) to Azure
Display name Deploy Diagnostic Settings for WVD Host Pools to Log Analytics workspace
Id 5ca82ab1-2120-47cb-8ac7-b62c4dfc3883
Version 1.0.0
Details on versioning
Category Monitoring
Microsoft Learn
Description Deploys the diagnostic settings for WVD Host Pools to stream to a regional Log Analytics workspace when any WVD Host Pool which is missing these diagnostic settings is created or updated.
Mode All
Type Custom Community
Effect Default
DeployIfNotExists
Allowed
DeployIfNotExists, AuditIfNotExists, Disabled
RBAC role(s)
Role Name Role Id
Monitoring Contributor 749f88d5-cbae-40b8-bcfc-e573ddc772fa
Log Analytics Contributor 92aaf0da-9dab-42b6-94a3-d43ce8d16293
Rule aliases THEN-ExistenceCondition (1)
Alias Namespace ResourceType Path PathIsDefault DefaultPath Modifiable
Microsoft.Insights/diagnosticSettings/logs.enabled microsoft.insights diagnosticSettings properties.logs[*].enabled True False
Rule resource types IF (1)
Microsoft.DesktopVirtualization/hostpools
JSON
EPAC
Deploy policy 5ca82ab1-2120-47cb-8ac7-b62c4dfc3883 (1.0.0) to Azure