-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathGeoRedundant_SQLDatabase_AINE.json
More file actions
69 lines (69 loc) · 1.98 KB
/
GeoRedundant_SQLDatabase_AINE.json
File metadata and controls
69 lines (69 loc) · 1.98 KB
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
64
65
66
67
68
69
{
"properties": {
"displayName": "Long-term geo-redundant backup should be enabled for Azure SQL Databases",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "This policy audits any Azure SQL Database with long-term geo-redundant backup not enabled.",
"metadata": {
"version": "2.0.0",
"category": "SQL"
},
"version": "2.0.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",
"equals": "Microsoft.Sql/servers/databases"
},
{
"field": "name",
"notEquals": "master"
}
]
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies",
"name": "default",
"existenceCondition": {
"anyOf": [
{
"field": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies/weeklyRetention",
"notEquals": "PT0S"
},
{
"field": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies/monthlyRetention",
"notEquals": "PT0S"
},
{
"field": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies/yearlyRetention",
"notEquals": "PT0S"
}
]
}
}
}
},
"versions": [
"2.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/d38fc420-0735-4ef3-ac11-c806f651a570",
"name": "d38fc420-0735-4ef3-ac11-c806f651a570"
}