Hi Mark Gordon •,
Welcome to Microsoft Q&A forum and thanks for using Azure Services.
As I understand, you want to know Retention Days in Azure SQL Managed Instance.
Could you please confirm if the question is about Azure SQL Database or Azure SQL Managed Instance?
If it is related to Azure SQL Database then please refer to the documentation here: https://learn.microsoft.com/en-us/azure/azure-sql/database/auditing-setup?view=azuresql
where you can set up days as shown below:
If it is Azure SQL Managed Instance, then please refer to https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/auditing-configure?view=azuresql
Audit differences between databases in Azure SQL Managed Instance and databases in SQL Server
The key differences between auditing in databases in Azure SQL Managed Instance and databases in SQL Server are:
- With Azure SQL Managed Instance, auditing works at the server level and stores
.xellog files in Azure Blob storage. - In SQL Server, audit works at the server level, but stores events in the file system and Windows event logs.
XEvent auditing in managed instances supports Azure Blob storage targets. File and Windows logs are not supported.
The key differences in the CREATE AUDIT syntax for auditing to Azure Blob storage are:
- A new syntax
TO URLis provided and enables you to specify the URL of the Azure Blob storage container where the.xelfiles are placed. - A new syntax
TO EXTERNAL MONITORis provided to enable Event Hubs and Azure Monitor log targets. - The syntax
TO FILEis not supported because Azure SQL Managed Instance can't access Windows file shares. - Shutdown option is not supported.
-
queue_delayof 0 is not supported.
Let us know if this information helped. If not, please let us know more on the details of the question so that we can assist you.
Thanks