CmdID

CmdID / az / az sql / az sql server / az sql server audit-policy

az sql server audit-policy update

Update a server's auditing policy. Azure CLI reference

12 options Its page in the Azure CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Options

12 in the Azure CLI reference
--actionsList of actions and action groups to audit.These are space seperated values.Example: --actions FAILED_DATABASE_AUTHENTICATION_GROUP BATCH_COMPLETED_GROUP
--blob-storage-target-state, --bstsIndicate whether blob storage is a destination for audit records.
--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.
--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.