-
Notifications
You must be signed in to change notification settings - Fork 988
/
Copy pathDeploy-MDFC-Config_20240319.json
420 lines (420 loc) · 17.4 KB
/
Deploy-MDFC-Config_20240319.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
{
"name": "Deploy-MDFC-Config_20240319",
"type": "Microsoft.Authorization/policySetDefinitions",
"apiVersion": "2021-06-01",
"scope": null,
"properties": {
"policyType": "Custom",
"displayName": "Deploy Microsoft Defender for Cloud configuration",
"description": "Deploy Microsoft Defender for Cloud configuration",
"metadata": {
"version": "2.1.0",
"category": "Security Center",
"source": "https://github.com/Azure/Enterprise-Scale/",
"replacesPolicy": "Deploy-MDFC-Config",
"alzCloudEnvironments": [
"AzureCloud"
]
},
"parameters": {
"emailSecurityContact": {
"type": "string",
"metadata": {
"displayName": "Security contacts email address",
"description": "Provide email address for Microsoft Defender for Cloud contact details"
}
},
"minimalSeverity": {
"type": "string",
"allowedValues": [
"High",
"Medium",
"Low"
],
"defaultValue": "High",
"metadata": {
"displayName": "Minimal severity",
"description": "Defines the minimal alert severity which will be sent as email notifications"
}
},
"logAnalytics": {
"type": "String",
"metadata": {
"displayName": "Primary Log Analytics workspace",
"description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant 'Log Analytics Contributor' permissions (or similar) to the policy assignment's principal ID.",
"strongType": "omsWorkspace"
}
},
"ascExportResourceGroupName": {
"type": "String",
"metadata": {
"displayName": "Resource Group name for the export to Log Analytics workspace configuration",
"description": "The resource group name where the export to Log Analytics workspace configuration is created. If you enter a name for a resource group that doesn't exist, it'll be created in the subscription. Note that each resource group can only have one export to Log Analytics workspace configured."
}
},
"ascExportResourceGroupLocation": {
"type": "String",
"metadata": {
"displayName": "Resource Group location for the export to Log Analytics workspace configuration",
"description": "The location where the resource group and the export to Log Analytics workspace configuration are created."
}
},
"createResourceGroup":{
"type": "Boolean",
"metadata": {
"displayName": "Create resource group",
"description": "If a resource group does not exists in the scope, a new resource group will be created. If the resource group exists and this flag is set to 'true' the policy will re-deploy the resource group. Please note this will reset any Azure Tag on the resource group."
},
"defaultValue": true,
"allowedValues": [
true,
false
]
},
"enableAscForCosmosDbs": {
"type": "String",
"allowedValues": [
"DeployIfNotExists",
"Disabled"
],
"defaultValue": "DeployIfNotExists",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
},
"enableAscForSql": {
"type": "String",
"allowedValues": [
"DeployIfNotExists",
"Disabled"
],
"defaultValue": "DeployIfNotExists",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
},
"enableAscForSqlOnVm": {
"type": "String",
"allowedValues": [
"DeployIfNotExists",
"Disabled"
],
"defaultValue": "DeployIfNotExists",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
},
"enableAscForArm": {
"type": "String",
"allowedValues": [
"DeployIfNotExists",
"Disabled"
],
"defaultValue": "DeployIfNotExists",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
},
"enableAscForOssDb": {
"type": "String",
"allowedValues": [
"DeployIfNotExists",
"Disabled"
],
"defaultValue": "DeployIfNotExists",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
},
"enableAscForAppServices": {
"type": "String",
"allowedValues": [
"DeployIfNotExists",
"Disabled"
],
"defaultValue": "DeployIfNotExists",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
},
"enableAscForKeyVault": {
"type": "String",
"allowedValues": [
"DeployIfNotExists",
"Disabled"
],
"defaultValue": "DeployIfNotExists",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
},
"enableAscForStorage": {
"type": "String",
"allowedValues": [
"DeployIfNotExists",
"Disabled"
],
"defaultValue": "DeployIfNotExists",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
},
"enableAscForContainers": {
"type": "String",
"allowedValues": [
"DeployIfNotExists",
"Disabled"
],
"defaultValue": "DeployIfNotExists",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
},
"enableAscForServers": {
"type": "String",
"allowedValues": [
"DeployIfNotExists",
"Disabled"
],
"defaultValue": "DeployIfNotExists",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
},
"enableAscForServersVulnerabilityAssessments": {
"type": "String",
"allowedValues": [
"DeployIfNotExists",
"Disabled"
],
"defaultValue": "DeployIfNotExists",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
},
"vulnerabilityAssessmentProvider": {
"type": "String",
"allowedValues": [
"default",
"mdeTvm"
],
"defaultValue": "mdeTvm",
"metadata": {
"displayName": "Vulnerability assessment provider type",
"description": "Select the vulnerability assessment solution to provision to machines."
}
},
"enableAscForCspm": {
"type": "String",
"allowedValues": [
"DeployIfNotExists",
"Disabled"
],
"defaultValue": "DeployIfNotExists",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
}
},
"policyDefinitions": [
{
"policyDefinitionReferenceId": "defenderForOssDb",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/44433aa3-7ec2-4002-93ea-65c65ff0310a",
"parameters": {
"effect": {
"value": "[[parameters('enableAscForOssDb')]"
}
},
"groupNames": []
},
{
"policyDefinitionReferenceId": "defenderForVM",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/8e86a5b6-b9bd-49d1-8e21-4bb8a0862222",
"parameters": {
"effect": {
"value": "[[parameters('enableAscForServers')]"
}
},
"groupNames": []
},
{
"policyDefinitionReferenceId": "defenderForVMVulnerabilityAssessment",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/13ce0167-8ca6-4048-8e6b-f996402e3c1b",
"parameters": {
"effect": {
"value": "[[parameters('enableAscForServersVulnerabilityAssessments')]"
},
"vaType": {
"value": "[[parameters('vulnerabilityAssessmentProvider')]"
}
},
"groupNames": []
},
{
"policyDefinitionReferenceId": "defenderForSqlServerVirtualMachines",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/50ea7265-7d8c-429e-9a7d-ca1f410191c3",
"parameters": {
"effect": {
"value": "[[parameters('enableAscForSqlOnVm')]"
}
},
"groupNames": []
},
{
"policyDefinitionReferenceId": "defenderForAppServices",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/b40e7bcd-a1e5-47fe-b9cf-2f534d0bfb7d",
"parameters": {
"effect": {
"value": "[[parameters('enableAscForAppServices')]"
}
},
"groupNames": []
},
{
"policyDefinitionReferenceId": "defenderForStorageAccountsV2",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/cfdc5972-75b3-4418-8ae1-7f5c36839390",
"parameters": {
"effect": {
"value": "[[parameters('enableAscForStorage')]"
}
},
"groupNames": []
},
{
"policyDefinitionReferenceId": "defenderforContainers",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/c9ddb292-b203-4738-aead-18e2716e858f",
"parameters": {
"effect": {
"value": "[[parameters('enableAscForContainers')]"
}
},
"groupNames": []
},
{
"policyDefinitionReferenceId": "defenderforKubernetes",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/64def556-fbad-4622-930e-72d1d5589bf5",
"parameters": {
"effect": {
"value": "[[parameters('enableAscForContainers')]"
},
"logAnalyticsWorkspaceResourceId": {
"value": "[[parameters('logAnalytics')]"
}
},
"groupNames": []
},
{
"policyDefinitionReferenceId": "azurePolicyForKubernetes",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a8eff44f-8c92-45c3-a3fb-9880802d67a7",
"parameters": {
"effect": {
"value": "[[parameters('enableAscForContainers')]"
}
},
"groupNames": []
},
{
"policyDefinitionReferenceId": "defenderForKeyVaults",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1f725891-01c0-420a-9059-4fa46cb770b7",
"parameters": {
"effect": {
"value": "[[parameters('enableAscForKeyVault')]"
}
},
"groupNames": []
},
{
"policyDefinitionReferenceId": "defenderForArm",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/b7021b2b-08fd-4dc0-9de7-3c6ece09faf9",
"parameters": {
"effect": {
"value": "[[parameters('enableAscForArm')]"
}
},
"groupNames": []
},
{
"policyDefinitionReferenceId": "defenderForSqlPaas",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/b99b73e7-074b-4089-9395-b7236f094491",
"parameters": {
"effect": {
"value": "[[parameters('enableAscForSql')]"
}
},
"groupNames": []
},
{
"policyDefinitionReferenceId": "defenderForCosmosDbs",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/82bf5b87-728b-4a74-ba4d-6123845cf542",
"parameters": {
"effect": {
"value": "[[parameters('enableAscForCosmosDbs')]"
}
},
"groupNames": []
},
{
"policyDefinitionReferenceId": "defenderForCspm",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/72f8cee7-2937-403d-84a1-a4e3e57f3c21",
"parameters": {
"effect": {
"value": "[[parameters('enableAscForCspm')]"
}
},
"groupNames": []
},
{
"policyDefinitionReferenceId": "securityEmailContact",
"policyDefinitionId": "/providers/Microsoft.Management/managementGroups/contoso/providers/Microsoft.Authorization/policyDefinitions/Deploy-ASC-SecurityContacts",
"parameters": {
"emailSecurityContact": {
"value": "[[parameters('emailSecurityContact')]"
},
"minimalSeverity": {
"value": "[[parameters('minimalSeverity')]"
}
},
"groupNames": []
},
{
"policyDefinitionReferenceId": "ascExport",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/ffb6f416-7bd2-4488-8828-56585fef2be9",
"parameters": {
"resourceGroupName": {
"value": "[[parameters('ascExportResourceGroupName')]"
},
"resourceGroupLocation": {
"value": "[[parameters('ascExportResourceGroupLocation')]"
},
"createResourceGroup": {
"value": "[[parameters('createResourceGroup')]"
},
"workspaceResourceId": {
"value": "[[parameters('logAnalytics')]"
}
},
"groupNames": []
},
{
"policyDefinitionReferenceId": "migrateToMdeTvm",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/766e621d-ba95-4e43-a6f2-e945db3d7888",
"parameters": {
},
"groupNames": []
}
],
"policyDefinitionGroups": null
}
}