The servers/databases/auditingPolicies resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
To create a Microsoft.Sql/servers/databases/auditingPolicies resource, add the following JSON to your template.
{
"type": "Microsoft.Sql/servers/databases/auditingPolicies",
"apiVersion": "2014-04-01",
"name": "default",
"properties": {
"auditingState": "string",
"auditLogsTableName": "string",
"eventTypesToAudit": "string",
"fullAuditLogsTableName": "string",
"retentionDays": "string",
"storageAccountKey": "string",
"storageAccountName": "string",
"storageAccountResourceGroupName": "string",
"storageAccountSecondaryKey": "string",
"storageAccountSubscriptionId": "string",
"storageTableEndpoint": "string",
"useServerDefault": "string"
}
}
Name | Description | Value |
---|---|---|
type | The resource type | 'Microsoft.Sql/servers/databases/auditingPolicies' |
apiVersion | The resource api version | '2014-04-01' |
name | The resource name See how to set names and types for child resources in JSON ARM templates. |
'default' |
properties | Resource properties. | DatabaseTableAuditingPolicyProperties |
Name | Description | Value |
---|---|---|
auditingState | The state of the policy. | string |
auditLogsTableName | The audit logs table name. | string |
eventTypesToAudit | Comma-separated list of event types to audit. | string |
fullAuditLogsTableName | The full audit logs table name. | string |
retentionDays | The number of days to keep in the audit logs. | string |
storageAccountKey | The key of the auditing storage account. | string |
storageAccountName | The table storage account name | string |
storageAccountResourceGroupName | The table storage account resource group name | string |
storageAccountSecondaryKey | The secondary key of the auditing storage account. | string |
storageAccountSubscriptionId | The table storage subscription Id. | string Constraints: Min length = 36 Max length = 36 Pattern = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
storageTableEndpoint | The storage table endpoint. | string |
useServerDefault | Whether server default is enabled or disabled. | string |