last sync: 2025-Jun-04 17:22:52 UTC

Deploy Diagnostic Settings for Web Slots to Log Analytics workspace

Community Policy definition

Source Repository Community-Policy GitHub
JSON Community-Policy GitHub
Deploy policy 2e144d34-fcf6-48fc-84bf-15013ffb137e (1.0.0) to Azure
Display name Deploy Diagnostic Settings for Web Slots to Log Analytics workspace
Id 2e144d34-fcf6-48fc-84bf-15013ffb137e
Version 1.0.0
Details on versioning
Category Monitoring
Microsoft Learn
Description Deploys the diagnostic settings for Web Slots to stream to a regional Log Analytics workspace when any Web Slots which is missing this 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
Contributor b24988ac-6180-42a0-ab88-20f7382dd24c
Rule aliases THEN-ExistenceCondition (3)
Alias Namespace ResourceType Path PathIsDefault DefaultPath Modifiable
Microsoft.Insights/diagnosticSettings/logs.enabled microsoft.insights diagnosticSettings properties.logs[*].enabled True False
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.Web/sites/slots
JSON
EPAC
Deploy policy 2e144d34-fcf6-48fc-84bf-15013ffb137e (1.0.0) to Azure