Microsoft Defender for Cloud
Cloud and workloads

Enable vulnerability scanning with Microsoft Defender Vulnerability Management

In brief

The page adds clearer prerequisites, updates the agentless scanning link, documents the full REST API endpoint with placeholder definitions and PUT/DELETE actions, and simplifies Inventory remediation steps.

What Defender admins need to know

Admins manually configuring scanning or remediating machines can use the updated prerequisites, API details, and step-by-step guidance.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

Enable vulnerability scanning with Microsoft Defender Vulnerability Management

The Defender for Servers plan in Microsoft Defender for Cloud provides vulnerability scanning for protectedyour machines.

Integrated vulnerability scanning in Defender for Cloud uses Microsoft Defender Vulnerability Management and providesto scan your machines. It supports both agentless and agent-based scanning.modes.

Vulnerability managementScanning is enabledon by default when you enable Defender for Servers. Use this articlethe manual steps below only if you need to enableturn on scanning manually.yourself. Before you begin, review the prerequisites.

Prerequisites

Make sure you meet the following requirements before you enable vulnerability scanning.

Requirement Details
Agentless vulnerability scanning Review agentless scanning requirementsagentless scanning requirements.

Agentless scanning is on by default when Defender for Servers Plan 2 or the Defender for Servers Cloud Security Posture Management (CSPM) plan is enabled.
Agent-based vulnerability scanning For agent-based scanning, enable Defender for Servers Plan 1 (P1) or Plan 2 (P2).
Machine support Review supported machines.
Permissions You need Owner (resource group level) permissions to deploy the scanner.

You need Security Reader to view findings.
:::image type="content" source="media/deploy-vulnerability-assessment-defender-vulnerability-management/turn-on-deploy-vulnerability-assessment.png" alt-text="Screenshot showing where to turn on deployment of vulnerability assessment for machines." lightbox="media/auto-deploy-vulnerability-assessment/turn-on-deploy-vulnerability-assessment.png":::
  1. Select Apply > Save.

Next step

[!div class="nextstepaction"] View vulnerability findings

Configure with the REST API

To configure withenable or disable scanning through the REST API, run PUT/send a PUT (enable) or DELETE using this URL: (disable) request to the following URL. Replace each placeholder with your own values.

https://management.azure.com/subscriptions/...{subscriptionId}/resourceGroups/...{resourceGroup}/providers/Microsoft.Compute/virtualMachines/...{vmName}/providers/Microsoft.Security/serverVulnerabilityAssessments/mdetvm?api-version=2015-06-01-preview
PlaceholderDescription
{subscriptionId}Your Azure subscription ID.
{resourceGroup}The resource group that contains the VM.
{vmName}The name of the virtual machine.

Enable vulnerability scanning for a machine

To enable vulnerability scanning forIf a specific machine, use the recommendation that appears when Defender for Serversmachine doesn't findhave scanning turned on, the Machines should have a vulnerability assessment solution.solution recommendation appears in Defender for Cloud. Use that recommendation to enable it.

  1. To find all machines without a solution installed, inOpen the Inventory page,page and select Unhealthy resources. Use the

  2. Filter by Recommendations filter toand search for machines with this recommendation:for: Machines should have a vulnerability assessment solution.

  3. Open the recommendation.

  4. Follow the remediation steps to fix machineseach machine that don't havelacks a vulnerability assessment solution enabled.solution.

  5. Select a vulnerability solution.

    :::image type="content" source="media/deploy-vulnerability-assessment-defender-vulnerability-management/mdvm-small.png" alt-text="Screenshot of the window that shows the options for selecting a vulnerability assessment solution from the recommendation.":::

After the processremediation completes, it can take up to 24 hours for resources to move to the Healthy resources tab.

Next steps