last sync: 2025-May-27 20:12:32 UTC

Deploy - Configure diagnostic settings for SQL Databases to Log Analytics workspace

Azure BuiltIn Policy definition

Source Azure Portal
Display name Deploy - Configure diagnostic settings for SQL Databases to Log Analytics workspace
Id b79fa14e-238a-4c2d-b376-442ce508fc84
Version 4.0.0
Details on versioning
Versioning Versions supported for Versioning: 1
4.0.0
Built-in Versioning [Preview]
Category SQL
Microsoft Learn
Description Deploys the diagnostic settings for SQL Databases to stream resource logs to a Log Analytics workspace when any SQL Database which is missing this diagnostic settings is created or updated.
Cloud environments AzureCloud = true
AzureUSGovernment = true
AzureChinaCloud = unknown
Available in AzUSGov The Policy is available in AzureUSGovernment cloud. Version: '4.*.*'
Mode Indexed
Type BuiltIn
Preview False
Deprecated False
Effect Default
DeployIfNotExists
Allowed
DeployIfNotExists, Disabled
RBAC role(s)
Role Name Role Id
Monitoring Contributor 749f88d5-cbae-40b8-bcfc-e573ddc772fa
Log Analytics Contributor 92aaf0da-9dab-42b6-94a3-d43ce8d16293
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)
Compliance
The following 1 compliance controls are associated with this Policy definition 'Deploy - Configure diagnostic settings for SQL Databases to Log Analytics workspace' (b79fa14e-238a-4c2d-b376-442ce508fc84)
Rows: 1-1 / 1

Columns:

Close

Columns▼
Records:
Use the filters above each column to filter and limit table data. Advanced searches can be performed by using the following operators:
<, <=, >, >=, =, *, !, {, }, ||,&&, [empty], [nonempty], rgx:
Learn more

TableFilter v0.7.3

https://www.tablefilter.com/
©2015-2025 Max Guglielmi
?
Page of 1
Control Domain Control Name MetadataId Category Title Owner Requirements Description Info Policy#
RMiT_v1.0 10.66 RMiT_v1.0_10.66 RMiT 10.66 Security of Digital Services Security of Digital Services - 10.66 Shared n/a A financial institution must implement robust technology security controls in providing digital services which assure the following: (a) confidentiality and integrity of customer and counterparty information and transactions; (b) reliability of services delivered via channels and devices with minimum disruption to services; (c) proper authentication of users or devices and authorisation of transactions; (d) sufficient audit trail and monitoring of anomalous transactions; (e) ability to identify and revert to the recovery point prior to incident or service disruption; and (f) strong physical control and logical control measures link 30
Initiatives usage
Rows: 1-3 / 3
Records:
Use the filters above each column to filter and limit table data. Advanced searches can be performed by using the following operators:
<, <=, >, >=, =, *, !, {, }, ||,&&, [empty], [nonempty], rgx:
Learn more

TableFilter v0.7.3

https://www.tablefilter.com/
©2015-2025 Max Guglielmi
?
Page of 1
Initiative DisplayName Initiative Id Initiative Category State Type polSet in AzUSGov
[Deprecated]: Deploy Diagnostic Settings to Azure Services Deploy-Diagnostics-LogAnalytics Monitoring Deprecated ALZ
[Preview]: Control the use of diagnostic settings for specific resources in a Virtual Enclave 0a9ea1cb-7925-47fc-b0fe-8bb0a8190423 VirtualEnclaves Preview BuiltIn true
RMIT Malaysia 97a6d4f1-3bed-4cf4-ac5b-0e444c0408d6 Regulatory Compliance GA BuiltIn unknown
History
Date/Time (UTC ymd) (i) Change type Change detail
2022-03-11 18:16:48 change Major (3.0.0 > 4.0.0)
2022-02-04 18:25:37 change Major (2.0.0 > 3.0.0)
2021-10-22 15:42:38 change Major (1.0.1 > 2.0.0)
2021-02-10 14:43:58 change Patch (1.0.0 > 1.0.1)
2021-02-03 15:09:01 add b79fa14e-238a-4c2d-b376-442ce508fc84
JSON compare
compare mode: version left: version right:
3.0.0 → 4.0.0 RENAMED
@@ -3,9 +3,9 @@
3
  "policyType": "BuiltIn",
4
  "mode": "Indexed",
5
  "description": "Deploys the diagnostic settings for SQL Databases to stream resource logs to a Log Analytics workspace when any SQL Database which is missing this diagnostic settings is created or updated.",
6
  "metadata": {
7
- "version": "3.0.0",
8
  "category": "SQL"
9
  },
10
  "parameters": {
11
  "effect": {
@@ -332,13 +332,25 @@
332
  "field": "Microsoft.Insights/diagnosticSettings/logs[*].enabled",
333
  "equals": "[parameters('DeadlocksEnabled')]"
334
  }
335
  ]
 
 
 
 
 
 
 
 
 
 
 
 
336
  }
337
  ]
338
  }
339
  },
340
- "equals": 9
341
  },
342
  {
343
  "count": {
344
  "field": "Microsoft.Insights/diagnosticSettings/metrics[*]",
@@ -505,8 +517,12 @@
505
  },
506
  {
507
  "category": "Deadlocks",
508
  "enabled": "[parameters('DeadlocksEnabled')]"
 
 
 
 
509
  }
510
  ]
511
  }
512
  }
 
3
  "policyType": "BuiltIn",
4
  "mode": "Indexed",
5
  "description": "Deploys the diagnostic settings for SQL Databases to stream resource logs to a Log Analytics workspace when any SQL Database which is missing this diagnostic settings is created or updated.",
6
  "metadata": {
7
+ "version": "4.0.0",
8
  "category": "SQL"
9
  },
10
  "parameters": {
11
  "effect": {
 
332
  "field": "Microsoft.Insights/diagnosticSettings/logs[*].enabled",
333
  "equals": "[parameters('DeadlocksEnabled')]"
334
  }
335
  ]
336
+ },
337
+ {
338
+ "allOf": [
339
+ {
340
+ "field": "Microsoft.Insights/diagnosticSettings/logs[*].category",
341
+ "equals": "SQLSecurityAuditEvents"
342
+ },
343
+ {
344
+ "field": "Microsoft.Insights/diagnosticSettings/logs[*].enabled",
345
+ "equals": "[parameters('SQLSecurityAuditEventsEnabled')]"
346
+ }
347
+ ]
348
  }
349
  ]
350
  }
351
  },
352
+ "equals": 10
353
  },
354
  {
355
  "count": {
356
  "field": "Microsoft.Insights/diagnosticSettings/metrics[*]",
 
517
  },
518
  {
519
  "category": "Deadlocks",
520
  "enabled": "[parameters('DeadlocksEnabled')]"
521
+ },
522
+ {
523
+ "category": "SQLSecurityAuditEvents",
524
+ "enabled": "[parameters('SQLSecurityAuditEventsEnabled')]"
525
  }
526
  ]
527
  }
528
  }
JSON
api-version=2021-06-01
EPAC
{7 items}