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

PostgreSQL - Diagnostic Settings

Community Policy definition

Source Repository Community-Policy GitHub
JSON Community-Policy GitHub
Deploy policy 103cd500-81b6-488e-82f9-78615cf6300c (1.0.0) to Azure
Display name PostgreSQL - Diagnostic Settings
Id 103cd500-81b6-488e-82f9-78615cf6300c
Version 1.0.0
Details on versioning
Category SQL
Microsoft Learn
Description This Azure Policy creates an audit event when specific log (i.e. PostgreSQLLogs) and metric categories (i.e. AllMetrics) in the Diagnostic Settings are not send to a specific Log Analytics Workspace.
Mode All
Type Custom Community
Effect Default
AuditIfNotExists
Allowed
AuditIfNotExists, Disabled
RBAC role(s) none
Rule aliases THEN-ExistenceCondition (7)
Alias Namespace ResourceType Path PathIsDefault DefaultPath Modifiable
Microsoft.Insights/diagnosticSettings/logs[*] microsoft.insights diagnosticSettings properties.logs[*] True False
Microsoft.Insights/diagnosticSettings/logs[*].category microsoft.insights diagnosticSettings properties.logs[*].category True False
Microsoft.Insights/diagnosticSettings/logs[*].enabled microsoft.insights diagnosticSettings properties.logs[*].enabled True False
Microsoft.Insights/diagnosticSettings/metrics[*] microsoft.insights diagnosticSettings properties.metrics[*] True False
Microsoft.Insights/diagnosticSettings/metrics[*].category microsoft.insights diagnosticSettings properties.metrics[*].category True False
Microsoft.Insights/diagnosticSettings/metrics[*].enabled microsoft.insights diagnosticSettings properties.metrics[*].enabled True False
Microsoft.Insights/diagnosticSettings/workspaceId microsoft.insights diagnosticSettings properties.workspaceId True False
Rule resource types IF (1)
Microsoft.DBforPostgreSQL/servers
JSON
EPAC
Deploy policy 103cd500-81b6-488e-82f9-78615cf6300c (1.0.0) to Azure