Skip to content

Commit bc3e1bb

Browse files
author
msftbot[bot]
authored
[ReleasePR security/resource-manager] [Security] Add directive definition to csharp to avoid .Net conflicts (#2633)
Create to sync Azure/azure-rest-api-specs#21206 [ReCreate this PR](https://github.com/azure-resource-manager-schemas/compare/main...azure-sdk:sdkAuto/security_resource-manager?expand=1)
2 parents 3ddb431 + 35edc31 commit bc3e1bb

File tree

2 files changed

+292
-0
lines changed

2 files changed

+292
-0
lines changed

schemas/2020-01-01-preview/Microsoft.Security.json

Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,45 @@
4343
"type"
4444
],
4545
"description": "Microsoft.Security/connectors"
46+
},
47+
"securityContacts": {
48+
"type": "object",
49+
"properties": {
50+
"apiVersion": {
51+
"type": "string",
52+
"enum": [
53+
"2020-01-01-preview"
54+
]
55+
},
56+
"name": {
57+
"type": "string",
58+
"description": "Name of the security contact object"
59+
},
60+
"properties": {
61+
"oneOf": [
62+
{
63+
"$ref": "#/definitions/SecurityContactProperties"
64+
},
65+
{
66+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
67+
}
68+
],
69+
"description": "Describes security contact properties"
70+
},
71+
"type": {
72+
"type": "string",
73+
"enum": [
74+
"Microsoft.Security/securityContacts"
75+
]
76+
}
77+
},
78+
"required": [
79+
"apiVersion",
80+
"name",
81+
"properties",
82+
"type"
83+
],
84+
"description": "Microsoft.Security/securityContacts"
4685
}
4786
},
4887
"definitions": {
@@ -278,6 +317,120 @@
278317
},
279318
"description": "For a non-Azure machine that is not connected directly to the internet, specify a proxy server that the non-Azure machine can use."
280319
},
320+
"SecurityContactProperties": {
321+
"type": "object",
322+
"properties": {
323+
"alertNotifications": {
324+
"oneOf": [
325+
{
326+
"$ref": "#/definitions/SecurityContactPropertiesAlertNotifications"
327+
},
328+
{
329+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
330+
}
331+
],
332+
"description": "Defines whether to send email notifications about new security alerts"
333+
},
334+
"emails": {
335+
"type": "string",
336+
"description": "List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact."
337+
},
338+
"notificationsByRole": {
339+
"oneOf": [
340+
{
341+
"$ref": "#/definitions/SecurityContactPropertiesNotificationsByRole"
342+
},
343+
{
344+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
345+
}
346+
],
347+
"description": "Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription."
348+
},
349+
"phone": {
350+
"type": "string",
351+
"description": "The security contact's phone number"
352+
}
353+
},
354+
"description": "Describes security contact properties"
355+
},
356+
"SecurityContactPropertiesAlertNotifications": {
357+
"type": "object",
358+
"properties": {
359+
"minimalSeverity": {
360+
"oneOf": [
361+
{
362+
"type": "string",
363+
"enum": [
364+
"High",
365+
"Medium",
366+
"Low"
367+
]
368+
},
369+
{
370+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
371+
}
372+
],
373+
"description": "Defines the minimal alert severity which will be sent as email notifications."
374+
},
375+
"state": {
376+
"oneOf": [
377+
{
378+
"type": "string",
379+
"enum": [
380+
"On",
381+
"Off"
382+
]
383+
},
384+
{
385+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
386+
}
387+
],
388+
"description": "Defines if email notifications will be sent about new security alerts."
389+
}
390+
},
391+
"description": "Defines whether to send email notifications about new security alerts"
392+
},
393+
"SecurityContactPropertiesNotificationsByRole": {
394+
"type": "object",
395+
"properties": {
396+
"roles": {
397+
"oneOf": [
398+
{
399+
"type": "array",
400+
"items": {
401+
"type": "string",
402+
"enum": [
403+
"AccountAdmin",
404+
"ServiceAdmin",
405+
"Owner",
406+
"Contributor"
407+
]
408+
}
409+
},
410+
{
411+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
412+
}
413+
],
414+
"description": "Defines which RBAC roles will get email notifications from Microsoft Defender for Cloud. List of allowed RBAC roles: "
415+
},
416+
"state": {
417+
"oneOf": [
418+
{
419+
"type": "string",
420+
"enum": [
421+
"On",
422+
"Off"
423+
]
424+
},
425+
{
426+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
427+
}
428+
],
429+
"description": "Defines whether to send email notifications from AMicrosoft Defender for Cloud to persons with specific RBAC roles on the subscription."
430+
}
431+
},
432+
"description": "Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription."
433+
},
281434
"ServicePrincipalProperties": {
282435
"type": "object",
283436
"properties": {

schemas/2021-06-01/Microsoft.Security.json

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,53 @@
4343
"type"
4444
],
4545
"description": "Microsoft.Security/assessmentMetadata"
46+
},
47+
"settings": {
48+
"type": "object",
49+
"oneOf": [
50+
{
51+
"$ref": "#/definitions/DataExportSettings"
52+
},
53+
{
54+
"$ref": "#/definitions/AlertSyncSettings"
55+
}
56+
],
57+
"properties": {
58+
"apiVersion": {
59+
"type": "string",
60+
"enum": [
61+
"2021-06-01"
62+
]
63+
},
64+
"name": {
65+
"oneOf": [
66+
{
67+
"type": "string",
68+
"enum": [
69+
"MCAS",
70+
"WDATP",
71+
"Sentinel"
72+
]
73+
},
74+
{
75+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
76+
}
77+
],
78+
"description": "The name of the setting."
79+
},
80+
"type": {
81+
"type": "string",
82+
"enum": [
83+
"Microsoft.Security/settings"
84+
]
85+
}
86+
},
87+
"required": [
88+
"apiVersion",
89+
"name",
90+
"type"
91+
],
92+
"description": "Microsoft.Security/settings"
4693
}
4794
},
4895
"unknown_resourceDefinitions": {
@@ -87,6 +134,52 @@
87134
}
88135
},
89136
"definitions": {
137+
"AlertSyncSettingProperties": {
138+
"type": "object",
139+
"properties": {
140+
"enabled": {
141+
"oneOf": [
142+
{
143+
"type": "boolean"
144+
},
145+
{
146+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
147+
}
148+
],
149+
"description": "Is the alert sync setting enabled"
150+
}
151+
},
152+
"required": [
153+
"enabled"
154+
],
155+
"description": "The alert sync setting properties"
156+
},
157+
"AlertSyncSettings": {
158+
"type": "object",
159+
"properties": {
160+
"kind": {
161+
"type": "string",
162+
"enum": [
163+
"AlertSyncSettings"
164+
]
165+
},
166+
"properties": {
167+
"oneOf": [
168+
{
169+
"$ref": "#/definitions/AlertSyncSettingProperties"
170+
},
171+
{
172+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
173+
}
174+
],
175+
"description": "The alert sync setting properties"
176+
}
177+
},
178+
"required": [
179+
"kind"
180+
],
181+
"description": "Represents an alert sync setting"
182+
},
90183
"AssessmentLinks": {
91184
"type": "object",
92185
"properties": {},
@@ -140,6 +233,52 @@
140233
],
141234
"description": "Details of the Azure resource that was assessed"
142235
},
236+
"DataExportSettingProperties": {
237+
"type": "object",
238+
"properties": {
239+
"enabled": {
240+
"oneOf": [
241+
{
242+
"type": "boolean"
243+
},
244+
{
245+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
246+
}
247+
],
248+
"description": "Is the data export setting enabled"
249+
}
250+
},
251+
"required": [
252+
"enabled"
253+
],
254+
"description": "The data export setting properties"
255+
},
256+
"DataExportSettings": {
257+
"type": "object",
258+
"properties": {
259+
"kind": {
260+
"type": "string",
261+
"enum": [
262+
"DataExportSettings"
263+
]
264+
},
265+
"properties": {
266+
"oneOf": [
267+
{
268+
"$ref": "#/definitions/DataExportSettingProperties"
269+
},
270+
{
271+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
272+
}
273+
],
274+
"description": "The data export setting properties"
275+
}
276+
},
277+
"required": [
278+
"kind"
279+
],
280+
"description": "Represents a data export setting"
281+
},
143282
"OnPremiseResourceDetails": {
144283
"type": "object",
145284
"oneOf": [

0 commit comments

Comments
 (0)