last sync: 2023-Jun-19 17:45:01 UTC

Community Policy definition

Apply Diagnostic Settings for Azure SQL to a regional Event Hub

Name Apply Diagnostic Settings for Azure SQL to a regional Event Hub
Community-Policy GitHub
Id monitoring_apply-diagnostic-setting-azsql-eventhub
Version n/a
details on versioning
Category Monitoring
Microsoft docs
Description This policy automatically deploys diagnostic settings for Azure SQL to a regional event hub.
Mode Indexed
Type Custom Community
Effect Fixed
deployIfNotExists
Used RBAC Role
Role Name Role Id
Contributor b24988ac-6180-42a0-ab88-20f7382dd24c
Rule Aliases THEN-ExistenceCondition (3)
Alias Namespace ResourceType DefaultPath Modifiable
Microsoft.Insights/diagnosticSettings/eventHubName microsoft.insights diagnosticSettings properties.eventHubName false
Microsoft.Insights/diagnosticSettings/logs.enabled microsoft.insights diagnosticSettings properties.logs[*].enabled false
Microsoft.Insights/diagnosticSettings/metrics.enabled microsoft.insights diagnosticSettings properties.metrics[*].enabled false
Rule ResourceTypes IF (1)
Microsoft.Sql/servers/databases
JSON