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

Deploy Diagnostic Settings for Subscription to Storage Account

Community Policy definition

Source Repository Community-Policy GitHub
JSON Community-Policy GitHub
Deploy policy cc5bb581-9852-4035-94c6-5b28d7591889 (1.0.0) to Azure
Display name Deploy Diagnostic Settings for Subscription to Storage Account
Id cc5bb581-9852-4035-94c6-5b28d7591889
Version 1.0.0
Details on versioning
Category Monitoring
Microsoft Learn
Description Deploys the diagnostic settings for a Subscription to stream to a Storage account when any Subscription 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
Monitoring Contributor 749f88d5-cbae-40b8-bcfc-e573ddc772fa
Storage Account Contributor 17d1049b-9a84-46fb-8f53-869881c3d3ab
Rule aliases THEN-ExistenceCondition (1)
Alias Namespace ResourceType Path PathIsDefault DefaultPath Modifiable
Microsoft.Insights/diagnosticSettings/storageAccountId microsoft.insights diagnosticSettings properties.storageAccountId True False
Rule resource types IF (1)
Microsoft.Resources/subscriptions
THEN-Deployment (1)
Microsoft.insights/diagnosticSettings
JSON
EPAC
Deploy policy cc5bb581-9852-4035-94c6-5b28d7591889 (1.0.0) to Azure