
Explanation:

The scenario describes agentless scanning for virtual machines - a feature of Microsoft Defender for Cloud under the Defender CSPM (Cloud Security Posture Management) plan. Defender CSPM introduces agentless scanning capabilities that use snapshot-based (out-of-band) scanning to assess OS vulnerabilities, sensitive data, and configurations without requiring agents.
Microsoft documentation clarifies:
"Agentless scanning for machines is available in Defender CSPM and Defender for Servers P2. The scanning engine takes snapshots of virtual machines and performs analysis out-of-band to identify vulnerabilities and sensitive data exposure." For controlling which virtual machines participate, tag-based inclusion or exclusion is used. You can define which machines to include/exclude using Azure resource tags, such as:
Environment=Production
Scan=Exclude
Microsoft Defender for Cloud reads these tags to determine which resources should have scanning enabled or excluded.
Role-based access control (RBAC) and Azure Policy assignments control access and policy enforcement, but they are not used to exclude specific resources from Defender CSPM agentless scanning.
# Final Configuration:
* Defender Plan: Defender CSPM
* Exclusion Method: Tagging