Triage and Remediation
Remediation
Using Console
Using Console
To remediate the misconfiguration “Ensure That Vulnerability Assessment Setting Send Scan Reports To Is Configured” in Azure, please follow the below steps:
- Login to your Azure portal.
- Select the subscription where you want to remediate the misconfiguration.
- Go to the Security Center in the left-hand menu.
- Click on “Security policy” in the Security Center dashboard.
- Scroll down to the “Vulnerability Assessment” section and click on it.
- Click on the “Edit settings” button.
- Scroll down to the “Scan Reports” section.
- Ensure that the “Send scan reports to” option is set to a valid email address or a storage account.
- If you want to send the scan reports to an email address, enter the email address in the text box.
- If you want to send the scan reports to a storage account, select the storage account from the drop-down list.
- Click on the “Save” button to save the changes.
Using CLI
Using CLI
To remediate the misconfiguration “Ensure That Vulnerability Assessment Setting Send Scan Reports To Is Configured” for AZURE using AZURE CLI, follow the steps below:
- Open the Azure CLI in your terminal or command prompt.
- Login to your Azure account using the command “az login”.
-
Once you are logged in, run the following command to set the “sendScanReportTo” property to a valid email address:
Replace
<resource-group-name>
with the name of the resource group where your SQL Server virtual machine is located and<email-address>
with a valid email address where you want to receive the scan reports. - After running the command, the “sendScanReportTo” property will be set and the vulnerability assessment scan reports will be sent to the specified email address.
Using Python
Using Python
To remediate the misconfiguration “Ensure That Vulnerability Assessment Setting Send Scan Reports To Is Configured” for Azure using python, you can follow the below steps:By following these steps, you can remediate the misconfiguration “Ensure That Vulnerability Assessment Setting Send Scan Reports To Is Configured” for Azure using python.
- Import the necessary libraries:
- Authenticate and create a client object:
- Retrieve the assessment metadata for the specific subscription:
- Check if the “sendScanReportsTo” property is configured:
- Update the assessment metadata: