You can go to "Microsoft Defender Settings" on your VM to manage endpoint protection like temporarily turning it off on the VM and manage the exclusions list.

Exclusion

There is no dedicated panel for managing installation of the endpoint protection and it is not recommended however if you want to disable the endpoint protection you need to do it from Group policy.
