-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
ASC_SQLDbVulnerabilities_Audit.json
63 lines (63 loc) · 1.66 KB
/
ASC_SQLDbVulnerabilities_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
61
62
63
{
"properties": {
"displayName": "SQL databases should have vulnerability findings resolved",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Monitor vulnerability assessment scan results and recommendations for how to remediate database vulnerabilities.",
"metadata": {
"version": "4.1.0",
"category": "Security Center"
},
"version": "4.1.0",
"parameters": {
"effect": {
"type": "string",
"defaultValue": "AuditIfNotExists",
"allowedValues": [
"AuditIfNotExists",
"Disabled"
],
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"in": [
"Microsoft.Sql/servers",
"Microsoft.Sql/managedinstances"
]
},
{
"field": "kind",
"notContains": "analytics"
}
]
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.Security/assessments",
"name": "82e20e14-edc5-4373-bfc4-f13121257c37",
"existenceCondition": {
"field": "Microsoft.Security/assessments/status.code",
"in": [
"NotApplicable",
"Healthy"
]
}
}
}
},
"versions": [
"4.1.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/feedbf84-6b99-488c-acc2-71c829aa5ffc",
"name": "feedbf84-6b99-488c-acc2-71c829aa5ffc"
}