diff --git a/schemas/2015-06-01-preview/Microsoft.Security.json b/schemas/2015-06-01-preview/Microsoft.Security.json index adc017f32a..c33a60dcba 100644 --- a/schemas/2015-06-01-preview/Microsoft.Security.json +++ b/schemas/2015-06-01-preview/Microsoft.Security.json @@ -703,4 +703,4 @@ "description": "Represents a machine that is part of a VM/server group" } } -} \ No newline at end of file +} diff --git a/schemas/2017-08-01-preview/Microsoft.Security.json b/schemas/2017-08-01-preview/Microsoft.Security.json index 365e17bd67..fd4de89029 100644 --- a/schemas/2017-08-01-preview/Microsoft.Security.json +++ b/schemas/2017-08-01-preview/Microsoft.Security.json @@ -1557,4 +1557,4 @@ "description": "Workspace setting data" } } -} \ No newline at end of file +} diff --git a/schemas/2018-06-01/Microsoft.Security.json b/schemas/2018-06-01/Microsoft.Security.json index 614eded030..09ed3e2ec3 100644 --- a/schemas/2018-06-01/Microsoft.Security.json +++ b/schemas/2018-06-01/Microsoft.Security.json @@ -71,4 +71,4 @@ "description": "Pricing properties for the relevant scope" } } -} \ No newline at end of file +} diff --git a/schemas/2019-01-01-preview/Microsoft.Security.json b/schemas/2019-01-01-preview/Microsoft.Security.json index efb9868cc1..f48064a4f5 100644 --- a/schemas/2019-01-01-preview/Microsoft.Security.json +++ b/schemas/2019-01-01-preview/Microsoft.Security.json @@ -899,4 +899,4 @@ ] } } -} \ No newline at end of file +} diff --git a/schemas/2019-01-01/Microsoft.Security.json b/schemas/2019-01-01/Microsoft.Security.json index 2b7498a9e3..354a3291ab 100644 --- a/schemas/2019-01-01/Microsoft.Security.json +++ b/schemas/2019-01-01/Microsoft.Security.json @@ -155,4 +155,4 @@ "description": "Represents a data export setting" } } -} \ No newline at end of file +} diff --git a/schemas/2019-08-01/Microsoft.Security.json b/schemas/2019-08-01/Microsoft.Security.json index 43f54f4196..f402a437c3 100644 --- a/schemas/2019-08-01/Microsoft.Security.json +++ b/schemas/2019-08-01/Microsoft.Security.json @@ -931,4 +931,4 @@ "description": "Properties of the IoT Security solution's user defined resources." } } -} \ No newline at end of file +} diff --git a/schemas/2020-01-01-preview/Microsoft.Security.json b/schemas/2020-01-01-preview/Microsoft.Security.json index 51bf650198..5e65d0da1e 100644 --- a/schemas/2020-01-01-preview/Microsoft.Security.json +++ b/schemas/2020-01-01-preview/Microsoft.Security.json @@ -57,6 +57,17 @@ "type": "string", "description": "Name of the security contact object" }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/SecurityContactProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Describes security contact properties" + }, "type": { "type": "string", "enum": [ @@ -67,6 +78,7 @@ "required": [ "apiVersion", "name", + "properties", "type" ], "description": "Microsoft.Security/securityContacts" @@ -305,6 +317,120 @@ }, "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." }, + "SecurityContactProperties": { + "type": "object", + "properties": { + "alertNotifications": { + "oneOf": [ + { + "$ref": "#/definitions/SecurityContactPropertiesAlertNotifications" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Defines whether to send email notifications about new security alerts" + }, + "emails": { + "type": "string", + "description": "List of email addresses which will get notifications from Azure Security Center by the configurations defined in this security contact." + }, + "notificationsByRole": { + "oneOf": [ + { + "$ref": "#/definitions/SecurityContactPropertiesNotificationsByRole" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Defines whether to send email notifications from Azure Security Center to persons with specific RBAC roles on the subscription." + }, + "phone": { + "type": "string", + "description": "The security contact's phone number" + } + }, + "description": "Describes security contact properties" + }, + "SecurityContactPropertiesAlertNotifications": { + "type": "object", + "properties": { + "minimalSeverity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "High", + "Medium", + "Low" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Defines the minimal alert severity which will be sent as email notifications." + }, + "state": { + "oneOf": [ + { + "type": "string", + "enum": [ + "On", + "Off" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Defines if email notifications will be sent about new security alerts." + } + }, + "description": "Defines whether to send email notifications about new security alerts" + }, + "SecurityContactPropertiesNotificationsByRole": { + "type": "object", + "properties": { + "roles": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string", + "enum": [ + "AccountAdmin", + "ServiceAdmin", + "Owner", + "Contributor" + ] + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Defines which RBAC roles will get email notifications from Azure Security Center. List of allowed RBAC roles: " + }, + "state": { + "oneOf": [ + { + "type": "string", + "enum": [ + "On", + "Off" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Defines whether to send email notifications from Azure Security Center to persons with specific RBAC roles on the subscription." + } + }, + "description": "Defines whether to send email notifications from Azure Security Center to persons with specific RBAC roles on the subscription." + }, "ServicePrincipalProperties": { "type": "object", "properties": { @@ -320,4 +446,4 @@ "description": "Details of the service principal." } } -} \ No newline at end of file +} diff --git a/schemas/2020-01-01/Microsoft.Security.json b/schemas/2020-01-01/Microsoft.Security.json index 116df6202b..6e08cf7f32 100644 --- a/schemas/2020-01-01/Microsoft.Security.json +++ b/schemas/2020-01-01/Microsoft.Security.json @@ -1236,4 +1236,4 @@ "description": "Represents a machine that is part of a machine group" } } -} \ No newline at end of file +} diff --git a/schemas/2020-08-06-preview/Microsoft.Security.json b/schemas/2020-08-06-preview/Microsoft.Security.json index 6313b67177..ff470abe1e 100644 --- a/schemas/2020-08-06-preview/Microsoft.Security.json +++ b/schemas/2020-08-06-preview/Microsoft.Security.json @@ -147,4 +147,4 @@ "description": "IoT sensor properties" } } -} \ No newline at end of file +}