STIGUI
V-276243CAT II — Medium severitySV-276243r1149638_rule

Azure SQL Managed Instance must initiate session auditing upon startup.

Rule version MSQL-00-004700 · STIG v1 · 2025-10-07

Discussion

Session auditing is used when a user's activities are under investigation. To ensure capture of all activity during those periods when session auditing is in use, it must be in operation for the whole time Azure SQL Managed Instance is running.

Check

When Audits are enabled, they start up when the audits are enabled and remain operating until the audit is disabled.

Check if an audit is configured and enabled.

To determine if session auditing is configured and enabled, follow the instructions below:

Run this TSQL command to determine if SQL Auditing is configured and enabled:

SELECT name AS 'Audit Name', status_desc AS 'Audit Status', audit_file_path AS 'Current Audit File' FROM sys.dm_server_audit_status WHERE status_desc = 'STARTED'

All currently defined audits for the Azure SQL Managed Instance will be listed.

If no audits are returned, this is a finding.

Fix

Configure the SQL Audit(s) to automatically start during system start-up.

ALTER SERVER AUDIT [] WITH STATE = ON

Execute the following query:

SELECT name AS 'Audit Name', status_desc AS 'Audit Status', audit_file_path AS 'Current Audit File' FROM sys.dm_server_audit_status WHERE status_desc = 'STARTED'

Ensure the SQL STIG Audit is configured to initiate session auditing upon startup.

Identifiers

Group ID
V-276243
Group title
SRG-APP-000092-DB-000208
Rule ID
SV-276243r1149638_rule
Check ID
C-80398r1149636_chk
Fix ID
F-80303r1149637_fix