Edit

Share via


Resolve agentless scan error

After you connect your Google Cloud Platform (GCP) project to Microsoft Defender for Cloud, Defender for Cloud uses agentless machine scanning to identify vulnerabilities in your virtual machines (VMs). Defender for Cloud then provides security recommendations and alerts, along with guidance for remediation.

If no agentless scan results appear within 24 hours after you connect your GCP project, it’s possible that the GCP organizational policy Compute Storage resource use restrictions (Compute Engine disks, images, and snapshots) is preventing Defender for Cloud from accessing the necessary resources.

This article explains how to identify and resolve this issue so Defender for Cloud can successfully scan your VMs.

Prerequisites

Manage your organizations policies

By configuring your organization policies, you can control the resources that Defender for Cloud can access in your GCP project.

  1. Sign in to your GCP project.

  2. Navigate to your organization > relevant GCP project.

  3. Navigate to IAM & Admin > Organization Policies

  4. Search for the Compute Storage resource use restrictions (Compute Engine disks, images, and snapshots) policy.

  5. Select Manage policy.

  6. Change the policy type to Allow.

  7. In the allowlist, add under:organizations/517615557103.

  8. Select Save.

Defender for Cloud triggers agentless disk scanning with API calls. You'll know that everything works after the next API call, which takes up to 24 hours to occur, when results for agentless scanning are generated.

Next step