Project: KICS (Provisioning / Security & Compliance)
File: 79c2c2c0-eb00-47c0-ac16-f8b0e2c81c92.md

title: Email Notifications Disabled hide: toc: true navigation: true <style> .highlight .hll { background-color: #ff171742; } .md-content { max-width: 1100px; margin: 0 auto; } </style> Query id: 79c2c2c0-eb00-47c0-ac16-f8b0e2c81c92 Query name: Email Notifications Disabled Platform: AzureResourceManager Severity: <span style="color:#5bc0de">Info</span> Category: Networking and Firewall URL: Email notifications about new security alerts, should be set to 'On', and be sent to persons with specific RBAC roles on the subscription<br> ```json title="Positive test num. 1 - json file" hl_lines="17" { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "security contact", "type": "Microsoft.Security/securityContacts", "apiVersion": "2020-01-01-preview", "properties": { "emails": "sample@email.com", "phone": "9999999", "alertNotifications": { "state": "Off", "minimalSeverity": "High" }, "notificationsByRole": { "state": "On", "roles": [ "Owner" ] } } } ], "outputs": {} } ``` ```json title="Positive test num. 2 - json file" hl_lines="15" { "properties": { "template": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "security contact", "type": "Microsoft.Security/securityContacts", "apiVersion": "2020-01-01-preview", "properties": { "emails": "sample@email.com", "phone": "9999999", "alertNotifications": { "state": "On", "minimalSeverity": "High" } } } ], "outputs": {} }, "parameters": {} }, "kind": "template", "type": "Microsoft.Blueprint/blueprints/artifacts", "name": "myTemplate" } ``` ```json title="Positive test num. 3 - json file" hl_lines="23" { "properties": { "template": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "security contact", "type": "Microsoft.Security/securityContacts", "apiVersion": "2020-01-01-preview", "properties": { "emails": "sample@email.com", "phone": "9999999", "alertNotifications": { "state": "On", "minimalSeverity": "High" }, "notificationsByRole": { "state": "Off", "roles": [ "Owner" ] } } } ], "outputs": {} }, "parameters": {} }, "kind": "template", "type": "Microsoft.Blueprint/blueprints/artifacts", "name": "myTemplate" } ``` <details><summary>Positive test num. 4 - json file</summary> ```json hl_lines="22" { "properties": { "template": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "security contact", "type": "Microsoft.Security/securityContacts", "apiVersion": "2020-01-01-preview", "properties": { "emails": "sample@email.com", "phone": "9999999", "alertNotifications": { "state": "On", "minimalSeverity": "High" }, "notificationsByRole": { "roles": [ "Owner" ] } } } ], "outputs": {} }, "parameters": {} }, "kind": "template", "type": "Microsoft.Blueprint/blueprints/artifacts", "name": "myTemplate" } ``` </details> <details><summary>Positive test num. 5 - json file</summary> ```json hl_lines="13" { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "security contact", "type": "Microsoft.Security/securityContacts", "apiVersion": "2020-01-01-preview", "properties": { "emails": "sample@email.com", "phone": "9999999", "notificationsByRole": { "state": "On", "roles": [ "Owner" ] } } } ], "outputs": {} } ``` </details> <details><summary>Positive test num. 6 - json file</summary> ```json hl_lines="16" { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "security contact", "type": "Microsoft.Security/securityContacts", "apiVersion": "2020-01-01-preview", "properties": { "emails": "sample@email.com", "phone": "9999999", "alertNotifications": { "minimalSeverity": "High" }, "notificationsByRole": { "state": "On", "roles": [ "Owner" ] } } } ], "outputs": {} } ``` </details> <details><summary>Positive test num. 7 - json file</summary> ```json hl_lines="13" { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "security contact", "type": "Microsoft.Security/securityContacts", "apiVersion": "2020-01-01-preview", "properties": { "emails":

"phone": "9999999", "alertNotifications": { "state": "On", "minimalSeverity": "High" } } } ], "outputs": {} } ``` </details> <details><summary>Positive test num. 8 - json file</summary> ```json hl_lines="21" { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "security contact", "type": "Microsoft.Security/securityContacts", "apiVersion": "2020-01-01-preview", "properties": { "emails": "sample@email.com", "phone": "9999999", "alertNotifications": { "state": "On", "minimalSeverity": "High" }, "notificationsByRole": { "state": "Off", "roles": [ "Owner" ] } } } ], "outputs": {} } ``` </details> <details><summary>Positive test num. 9 - json file</summary> ```json hl_lines="20" { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "security contact", "type": "Microsoft.Security/securityContacts", "apiVersion": "2020-01-01-preview", "properties": { "emails": "sample@email.com", "phone": "9999999", "alertNotifications": { "state": "On", "minimalSeverity": "High" }, "notificationsByRole": { "roles": [ "Owner" ] } } } ], "outputs": {} } ``` </details> <details><summary>Positive test num. 10 - json file</summary> ```json hl_lines="19" { "properties": { "template": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "security contact", "type": "Microsoft.Security/securityContacts", "apiVersion": "2020-01-01-preview", "properties": { "emails": "sample@email.com", "phone": "9999999", "alertNotifications": { "state": "Off", "minimalSeverity": "High" }, "notificationsByRole": { "state": "On", "roles": [ "Owner" ] } } } ], "outputs": {} }, "parameters": {} }, "kind": "template", "type": "Microsoft.Blueprint/blueprints/artifacts", "name": "myTemplate" } ``` </details> <details><summary>Positive test num. 11 - json file</summary> ```json hl_lines="15" { "properties": { "template": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "security contact", "type": "Microsoft.Security/securityContacts", "apiVersion": "2020-01-01-preview", "properties": { "emails": "sample@email.com", "phone": "9999999", "notificationsByRole": { "state": "On", "roles": [ "Owner" ] } } } ], "outputs": {} }, "parameters": {} }, "kind": "template", "type": "Microsoft.Blueprint/blueprints/artifacts", "name": "myTemplate" } ``` </details> <details><summary>Positive test num. 12 - json file</summary> ```json hl_lines="18" { "properties": { "template": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "security contact", "type": "Microsoft.Security/securityContacts", "apiVersion": "2020-01-01-preview", "properties": { "emails": "sample@email.com", "phone": "9999999", "alertNotifications": { "minimalSeverity": "High" }, "notificationsByRole": { "state": "On", "roles": [ "Owner" ] } } } ], "outputs": {} }, "parameters": {} }, "kind": "template", "type": "Microsoft.Blueprint/blueprints/artifacts", "name": "myTemplate" } ``` </details> ```json title="Negative test num. 1 - json file" { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "security contact", "type": "Microsoft.Security/securityContacts", "apiVersion": "2020-01-01-preview", "properties": { "emails": "sample@email.com", "phone": "9999999", "alertNotifications": { "state": "On", "minimalSeverity": "High" }, "notificationsByRole": { "state": "On", "roles": [ "Owner" ] } } } ], "outputs": {} } ``` ```json title="Negative test num. 2 - json file" { "properties": { "template": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "2.0.0.0", "apiProfile": "2019-03-01-hybrid", "parameters": {}, "variables": {}, "functions": [], "resources": [ { "name": "security contact", "type": "Microsoft.Security/securityContacts", "apiVersion": "2020-01-01-preview", "properties": { "emails": "sample@email.com", "phone": "9999999", "alertNotifications": { "state": "On", "minimalSeverity": "High" }, "notificationsByRole": { "state": "On", "roles": [ "Owner" ] } } } ], "outputs": {} }, "parameters": {} }, "kind": "template", "type": "Microsoft.Blueprint/blueprints/artifacts", "name": "myTemplate" } ```