Microsoft Defender for Endpoint (MDE) comes under the umbrella of Microsoft 365 but it has a direct link with Defender for Cloud which is on Azure. So, if you spin up your VMs (Windows or Linux) and enable Defender for Cloud – Servers plan and enable “Endpoint Protection”, it will trigger the installation of the extension for Defender for Endpoint (MDE).
Mastering IT with the Power of the Cloud