last sync: 2022-Jul-01 16:32:34 UTC

Azure Policy definition

Configure diagnostic settings for storage accounts to Log Analytics workspace

Name Configure diagnostic settings for storage accounts to Log Analytics workspace
Azure Portal
Id 6f8f98a4-f108-47cb-8e98-91a0d85cd474
Version 1.3.0
details on versioning
Category Storage
Microsoft docs
Description Deploys the diagnostic settings for storage accounts to stream resource logs to a Log Analytics workspace when any storage account which is missing this diagnostic settings is created or updated.
Mode Indexed
Type BuiltIn
Preview FALSE
Deprecated FALSE
Effect Default: DeployIfNotExists
Allowed: (DeployIfNotExists, Disabled)
Used RBAC Role
Role Name Role Id
Monitoring Contributor 749f88d5-cbae-40b8-bcfc-e573ddc772fa
Log Analytics Contributor 92aaf0da-9dab-42b6-94a3-d43ce8d16293
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)
Date/Time (UTC ymd) (i) Change type Change detail
2021-03-24 14:32:48 change Minor (1.1.0 > 1.3.0)
2021-03-09 14:37:41 change Minor (1.0.0 > 1.1.0)
2021-02-23 16:24:42 add 6f8f98a4-f108-47cb-8e98-91a0d85cd474
Used in Initiatives
Initiative DisplayName Initiative Id Initiative Category State Type
Deploy Diagnostic Settings to Azure Services Deploy-Diagnostics-LogAnalytics Monitoring GA ALZ
JSON Changes