CmdID / az / az synapse / az synapse sql / az synapse sql audit-policy
az synapse sql audit-policy update
Update a SQL's auditing policy. Azure CLI reference
16 options Its page in the Azure CLI reference
Options
--actionsList of actions and action groups to audit.--blob-storage-target-state, --bstsIndicate whether blob storage is a destination for audit records.--enable-azure-monitorWhether enabling azure monitor target or not.--event-hub, --ehThe name of the event hub.--event-hub-authorization-rule-id, --ehariThe resource Id for the event hub authorization rule.--event-hub-target-state, --ehtsIndicate whether event hub is a destination for audit records.--log-analytics-target-state, --latsIndicate whether log analytics is a destination for audit records.--log-analytics-workspace-resource-id, --lawriThe workspace ID (resource ID of a Log Analytics workspace) for a Log Analytics workspace to which you would like to send Audit Logs.--queue-delay-milliseconds, --queue-delay-timeThe amount of time in milliseconds that can elapse before audit actions are forced to be processed--retention-daysThe number of days to retain audit logs.--stateAuditing policy state--storage-accountName of the storage account.--storage-endpointThe storage account endpoint.--storage-keyAccess key for the storage account.--storage-subscriptionThe subscription id of storage account--use-secondary-keyIndicates whether using the secondary storeage key or not