-
Notifications
You must be signed in to change notification settings - Fork 2
/
azureSecurity.json
110 lines (110 loc) · 4.27 KB
/
azureSecurity.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"securitySettings": {
"type": "string",
"allowedValues": [
"On",
"Off"
],
"metadata": {
"description": "Turn security settings On or Off."
}
},
"emailContact": {
"type": "string",
"metadata": {
"description": "Add one or more e-mail addresses for notifications."
}
},
"securityPhoneNumber": {
"type": "string",
"metadata": {
"description": "Add a phone number for security related incidents."
}
},
"logAnalyticsSubscriptionID": {
"type": "string",
"metadata": {
"description": "Specify the subscriptionId where the Log Analytics workspace is deployed."
}
},
"logAnalyticsResourceGroup": {
"type": "string",
"metadata": {
"description": "Specify the resource group where the Log Analytics workspace is deployed."
}
},
"logAnalyticsWorkspaceName": {
"type": "string",
"metadata": {
"description": "Specify the name of your Log Analytics workspace to collect ASC data."
}
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.Security/policies",
"apiVersion": "2015-06-01-preview",
"name": "default",
"properties": {
"policyLevel": "Subscription",
"name": "default",
"unique": "Off",
"logCollection": "Off",
"recommendations": {
"patch": "[parameters('securitySettings')]",
"baseline": "[parameters('securitySettings')]",
"antimalware": "[parameters('securitySettings')]",
"diskEncryption": "[parameters('securitySettings')]",
"acls": "[parameters('securitySettings')]",
"nsgs": "[parameters('securitySettings')]",
"waf": "[parameters('securitySettings')]",
"sqlAuditing": "[parameters('securitySettings')]",
"sqlTde": "[parameters('securitySettings')]",
"ngfw": "[parameters('securitySettings')]",
"vulnerabilityAssessment": "[parameters('securitySettings')]",
"storageEncryption": "[parameters('securitySettings')]",
"jitNetworkAccess": "[parameters('securitySettings')]"
},
"securityContactConfiguration": {
"securityContactEmails": [
"[parameters('emailContact')]"
],
"securityContactPhone": "[parameters('securityPhoneNumber')]",
"areNotificationsOn": true,
"sendToAdminOn": false
},
"pricingConfiguration": {
"selectedPricingTier": "Free"
}
}
},
{
"type": "Microsoft.Security/workspaceSettings",
"apiVersion": "2017-08-01-preview",
"name": "default",
"dependsOn": [
"[resourceId('Microsoft.Security/policies/', 'default')]"
],
"properties": {
"workspaceId": "[concat('/subscriptions/', parameters('logAnalyticsSubscriptionID'), '/resourceGroups/', parameters('logAnalyticsResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/', parameters('logAnalyticsWorkspaceName'))]",
"scope": "[subscription().id]"
}
},
{
"type": "Microsoft.Security/autoProvisioningSettings",
"apiVersion": "2017-08-01-preview",
"name": "default",
"dependsOn": [
"[resourceId('Microsoft.Security/policies/', 'default')]"
],
"properties": {
"autoProvision": "[parameters('securitySettings')]"
}
}
],
"outputs": {}
}