Hi,
Specifically for the agentless scanning capabilities of Defender for Cloud you can exclude specific VMs by tags: Exclude machines from agentless scanning. So you assign specific tag and value to that machine and after that configure the same tag and value to exclude it on the agentless scanning configuration.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.