@Phong Nguyen (DA) Thank you for reaching out.
The notice you received is about changes to the Azure SQL Database Server Audit. Here’s how you can update the required information:
You can use the time-based filters using the new function that we release along with database filter to optimize the performance https://learn.microsoft.com/en-us/sql/relational-databases/system-functions/sys-fn-get-audit-file-v2-transact-sql
Please see the below sample queries
To review audit logs for database called test filter using where clause with database_name
select * from sys.fn_get_audit_file
('https://testaudit.blob.core.windows.net/sqldbauditlogs/auditpoc/master/SqlDbAuditing_ServerAudit_NoRetention/2023-01-29/07_06_40_590_0.xel', default, default )
where database_name ='test'
to review logs for read only replica use the below filter
select * from sys.fn_get_audit_file
('https://testaudit.blob.core.windows.net/sqldbauditlogs/auditpoc/master/SqlDbAuditing_ServerAudit_NoRetention/2023-01-29/07_06_40_590_0.xel', default, default )
where is_secondary_replica_true ='true'
Note: the old audit logs will continue to stay in the previous folders till the retention periods.
This change is applicable only for Server audit for Azure SQL Database, there is no change for SQL Server and SQL MI
Regards,
Oury