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

Deploy SQL Managed Instance Diagnostic Setting - Storage Account

Community Policy definition

Source Repository Community-Policy GitHub
JSON Community-Policy GitHub
Deploy policy 1fa51b86-8acc-4bce-a5c4-149e581ddc0d (1.0.0) to Azure
Display name Deploy SQL Managed Instance Diagnostic Setting - Storage Account
Id 1fa51b86-8acc-4bce-a5c4-149e581ddc0d
Version 1.0.0
Details on versioning
Category Monitoring
Microsoft Learn
Description This policy automatically deploys and enable diagnostic settings for SQL MI to a Storage Account
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/storageAccountId microsoft.insights diagnosticSettings properties.storageAccountId True False
Rule resource types IF (1)
Microsoft.Sql/managedInstances
JSON
EPAC
Deploy policy 1fa51b86-8acc-4bce-a5c4-149e581ddc0d (1.0.0) to Azure