az sql server update-auditing
command to enable auditing for the Azure SQL Server.--state Enabled
and --storage-account-resource-id
to configure auditing settings.az sql server update-auditing --resource-group <resource-group-name> --server <server-name> --state Enabled --storage-account-resource-id <storage-account-resource-id>
az monitor diagnostic-settings create
command to enable diagnostic settings for the Azure SQL Database.--name
, --resource-id
, and --workspace
to configure diagnostic settings.az monitor diagnostic-settings create --name <diagnostic-settings-name> --resource <database-resource-id> --workspace <workspace-id>
az sql db threat-policy update
command to enable threat detection for the Azure SQL Database.--name
, --resource-group
, --server
, and --state
to configure threat detection settings.az sql db threat-policy update --name <database-name> --resource-group <resource-group-name> --server <server-name> --state Enabled