> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/appsec-rules/iac-security/monitoring/appsec2-azure-5.md).

# Azure SQL Server ADS Vulnerability Assessment (VA) 'Also send email notifications to admins and subs

## Rule Details

|                        |                           |
| ---------------------- | ------------------------- |
| Cortex AppSec Rule ID  | APPSEC2\_AZURE\_5         |
| Category - Subcategory | Monitoring - Unintegrated |
| Provider               | AZURE                     |
| Severity               | LOW                       |
| Framework              | Terraform, Terraform Plan |

## Impact

Enable Vulnerability Assessment (VA) setting 'Also send email notifications to admins and subscription owners'. VA scan reports and alerts will be sent to admins and subscription owners by enabling setting 'Also send email notifications to admins and subscription owners'. This may help in reducing time required for identifying risks and taking corrective measures.

## How to Fix

## *Resource:* azurerm\_resource\_group, azurerm\_sql\_server, azurerm\_storage\_account, azurerm\_storage\_container, azurerm\_mssql\_server\_security\_alert\_policy, azurerm\_mssql\_server\_vulnerability\_assessment \[source,go]

{ "resource "azurerm\_resource\_group" "okExample" { name = "okExample-resources" location = "West Europe" }

resource "azurerm\_sql\_server" "okExample" { name = "mysqlserver" resource\_group\_name = azurerm\_resource\_group.okExample.name location = azurerm\_resource\_group.okExample.location version = "12.0" administrator\_login = "4dm1n157r470r" administrator\_login\_password = "4-v3ry-53cr37-p455w0rd" }

resource "azurerm\_storage\_account" "okExample" { name = "accteststorageaccount" resource\_group\_name = azurerm\_resource\_group.okExample.name location = azurerm\_resource\_group.okExample.location account\_tier = "Standard" account\_replication\_type = "GRS" }

resource "azurerm\_storage\_container" "okExample" { name = "accteststoragecontainer" storage\_account\_name = azurerm\_storage\_account.okExample.name container\_access\_type = "private" }

resource "azurerm\_mssql\_server\_security\_alert\_policy" "okExample" { resource\_group\_name = azurerm\_resource\_group.okExample.name server\_name = azurerm\_sql\_server.okExample.name state = "Enabled" }

resource "azurerm\_mssql\_server\_vulnerability\_assessment" "okExample" { server\_security\_alert\_policy\_id = azurerm\_mssql\_server\_security\_alert\_policy.okExample.id storage\_container\_path = "${azurerm\_storage\_account.okExample.primary\_blob\_endpoint}${azurerm\_storage\_container.okExample.name}/" storage\_account\_access\_key = azurerm\_storage\_account.okExample.primary\_access\_key

recurring\_scans { enabled = true email\_subscription\_admins = true emails = \[ "<email@example1.com>", "<email@example2.com>" ] }

## } ", }


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/appsec-rules/iac-security/monitoring/appsec2-azure-5.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
