Project: KICS (Provisioning / Security & Compliance)
File: a8852cc0-fd4b-4fc7-9372-1e43fad0732e.md

title: Account Admins Not Notified By Email hide: toc: true navigation: true <style> .highlight .hll { background-color: #ff171742; } .md-content { max-width: 1100px; margin: 0 auto; } </style> Query id: a8852cc0-fd4b-4fc7-9372-1e43fad0732e Query name: Account Admins Not Notified By Email Platform: AzureResourceManager Severity: <span style="color:#5bc0de">Info</span> Category: Best Practices URL: Account admins should be notified by email in the event of security alerts<br> ```json title="Positive test num. 1 - json file" hl_lines="14" { "$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": [ { "type": "Microsoft.Sql/servers/databases/securityAlertPolicies", "apiVersion": "2021-02-01-preview", "name": "sample/server/default", "properties": { "emailAccountAdmins": false, "emailAddresses": [ "sample@email.com" ], "retentionDays": 4, "state": "Enabled" } } ], "outputs": {} } ``` ```json title="Positive test num. 2 - json file" 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": [ { "type": "Microsoft.Sql/servers/databases/securityAlertPolicies", "apiVersion": "2021-02-01-preview", "name": "sample/server/default", "properties": { "emailAddresses": [ "sample@email.com" ], "retentionDays": 4, "state": "Enabled" } } ], "outputs": {} } ``` ```json title="Positive test num. 3 - json file" hl_lines="16" { "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": [ { "type": "Microsoft.Sql/servers/databases/securityAlertPolicies", "apiVersion": "2021-02-01-preview", "name": "sample/server/default", "properties": { "emailAccountAdmins": false, "emailAddresses": [ "sample@email.com" ], "retentionDays": 4, "state": "Enabled" } } ], "outputs": {} }, "parameters": {} }, "kind": "template", "type": "Microsoft.Blueprint/blueprints/artifacts", "name": "myTemplate" } ``` <details><summary>Positive test num. 4 - 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": [ { "type": "Microsoft.Sql/servers/databases/securityAlertPolicies", "apiVersion": "2021-02-01-preview", "name": "sample/server/default", "properties": { "emailAddresses": [ "sample@email.com" ], "retentionDays": 4, "state": "Enabled" } } ], "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": [ { "type": "Microsoft.Sql/servers/databases/securityAlertPolicies", "apiVersion": "2021-02-01-preview", "name": "sample/server/default", "properties": { "emailAccountAdmins": true, "emailAddresses": [ "sample@email.com" ], "retentionDays": 4, "state": "Enabled" } } ], "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": [ { "type": "Microsoft.Sql/servers/databases/securityAlertPolicies", "apiVersion": "2021-02-01-preview", "name": "sample/server/default", "properties": { "emailAccountAdmins": true, "emailAddresses": [ "sample@email.com" ], "retentionDays": 4, "state": "Enabled" } } ], "outputs": {} }, "parameters": {} }, "kind": "template", "type": "Microsoft.Blueprint/blueprints/artifacts", "name": "myTemplate" } ```