SV-255324r960879_rule
V-255324
SRG-APP-000089-DB-000064
ASQL-00-004300
CAT II
10
Deploy an Azure SQL Database audit.
Refer to the supplemental file "AzureSQLDatabaseAudit.txt" PowerShell script.
Check Azure SQL Database to see if an auditing is enabled.
Execute the following steps:
1. In the Azure Portal, open a Cloud Shell session.
2. Run this PowerShell command to determine if SQL Auditing is enabled:
$ResourceGroup = "myResourceGroup"
$ServerName = "myServerName"
Get-AzSqlServerAudit -ResourceGroupName $ResourceGroup -ServerName $ServerName `
| Select-object -property BlobStorageTargetState,LogAnalyticsTargetState,EventHubTargetState
If BlobStorageTargetState, LogAnalyticsTargetState and EventHubTargetState (all three) are Disabled, this is a finding.
V-255324
False
ASQL-00-004300
Check Azure SQL Database to see if an auditing is enabled.
Execute the following steps:
1. In the Azure Portal, open a Cloud Shell session.
2. Run this PowerShell command to determine if SQL Auditing is enabled:
$ResourceGroup = "myResourceGroup"
$ServerName = "myServerName"
Get-AzSqlServerAudit -ResourceGroupName $ResourceGroup -ServerName $ServerName `
| Select-object -property BlobStorageTargetState,LogAnalyticsTargetState,EventHubTargetState
If BlobStorageTargetState, LogAnalyticsTargetState and EventHubTargetState (all three) are Disabled, this is a finding.
M
5500