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

Apply Diagnostic Settings for Azure SQL to a regional Event Hub

Community Policy definition

Source Repository Community-Policy GitHub
JSON Community-Policy GitHub
Deploy policy c7403342-df76-4e5f-ae59-d24efedb0c16 (1.0.0) to Azure
Display name Apply Diagnostic Settings for Azure SQL to a regional Event Hub
Id c7403342-df76-4e5f-ae59-d24efedb0c16
Version 1.0.0
Details on versioning
Category Monitoring
Microsoft Learn
Description This policy automatically deploys diagnostic settings for Azure SQL to a regional event hub.
Mode Indexed
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/eventHubName microsoft.insights diagnosticSettings properties.eventHubName True False
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
Rule resource types IF (1)
Microsoft.Sql/servers/databases
JSON
EPAC
Deploy policy c7403342-df76-4e5f-ae59-d24efedb0c16 (1.0.0) to Azure