-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
WorkspaceSqlAuditing_Audit.json
60 lines (60 loc) · 1.68 KB
/
WorkspaceSqlAuditing_Audit.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"properties": {
"displayName": "Auditing on Synapse workspace should be enabled",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Auditing on your Synapse workspace should be enabled to track database activities across all databases on the dedicated SQL pools and save them in an audit log.",
"metadata": {
"version": "1.0.0",
"category": "Synapse"
},
"version": "1.0.0",
"parameters": {
"effect": {
"type": "string",
"defaultValue": "AuditIfNotExists",
"allowedValues": [
"AuditIfNotExists",
"Disabled"
],
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
},
"setting": {
"type": "String",
"metadata": {
"displayName": "Desired Auditing setting"
},
"defaultValue": "enabled",
"allowedValues": [
"enabled",
"disabled"
]
}
},
"policyRule": {
"if": {
"field": "type",
"equals": "Microsoft.Synapse/workspaces"
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.Synapse/workspaces/auditingSettings",
"name": "default",
"existenceCondition": {
"field": "Microsoft.Synapse/workspaces/auditingSettings/state",
"equals": "[parameters('setting')]"
}
}
}
},
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/e04e5000-cd89-451d-bb21-a14d24ff9c73",
"name": "e04e5000-cd89-451d-bb21-a14d24ff9c73"
}