An Azure relational database service.
Hello Nathan Given,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you would like to use sys.fn_get_audit_file_v2 (or sys.fn_get_audit_file) to read .sqlaudit files stored in blob storage.
It seems that the sys.fn_get_audit_file_v2 function is designed to work with .xel files, which are typically generated by Azure SQL Database auditing, rather than .sqlaudit files from SQL Server 2016 or 2019. This likely explains why you’re getting an empty result set when querying .sqlaudit files stored in Azure Blob Storage. One workaround is to download the .sqlaudit files locally and use SQL Server Management Studio (SSMS) to query them, ensuring compatibility with the file format.
Alternatively, you could consider using Azure Log Analytics to send and analyze your audit logs, or even Power BI for a more visual approach. For better reference for these recommendations : https://learn.microsoft.com/en-us/azure/azure-sql/database/auditing-analyze-audit-logs?view=azuresql
If these options aren’t feasible, developing a custom solution to read and convert the .sqlaudit files into a compatible format for Azure SQL Database might be necessary. These methods can help you effectively manage and query your audit data stored in Azure Blob Storage.
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.