Using Console
Using CLI
<storage_account_name>
: The name of the storage account where the audit logs will be stored.<storage_account_key>
: The access key for the storage account.<storage_account_endpoint>
: The endpoint for the storage account.<number_of_days>
: The number of days to retain the audit logs.<resource_group_name>
: The name of the resource group where the SQL Server resides.<sql_server_name>
: The name of the SQL Server.state
property is set to Enabled
.Once you have completed these steps, the “Monitor SQL Auditing setting is not enabled” misconfiguration should be remediated in Azure.Using Python