last sync: 2025-May-02 19:26:58 UTC

Configure Diagnostic Settings for all Web App Service Plan SKUs

Community Policy definition

Source Repository Community-Policy GitHub
JSON Community-Policy GitHub
Deploy policy b910b71b-efca-439e-a9a5-96c067b19c64 (1.0.0) to Azure
Display name Configure Diagnostic Settings for all Web App Service Plan SKUs
Id b910b71b-efca-439e-a9a5-96c067b19c64
Version 1.0.0
Details on versioning
Category App Service
Microsoft Learn
Description Custom Policy Definition that references the App Service Plan of an App Service and deploys the appropriate diagnostic settings
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 (4)
Alias Namespace ResourceType Path PathIsDefault DefaultPath Modifiable
Microsoft.Insights/diagnosticSettings/logs[*] microsoft.insights diagnosticSettings properties.logs[*] True False
Microsoft.Insights/diagnosticSettings/logs[*].enabled microsoft.insights diagnosticSettings properties.logs[*].enabled True False
Microsoft.Insights/diagnosticSettings/metrics[*] microsoft.insights diagnosticSettings properties.metrics[*] True False
Microsoft.Insights/diagnosticSettings/metrics[*].enabled microsoft.insights diagnosticSettings properties.metrics[*].enabled True False
Rule resource types IF (1)
Microsoft.Web/sites
THEN-Deployment (1)
Microsoft.Resources/deployments
JSON
EPAC
Deploy policy b910b71b-efca-439e-a9a5-96c067b19c64 (1.0.0) to Azure