Helllo @HinataGrape-6694 ,
The agent-based Azure Defender for IoT solution is a combination of an agent running on your (edge) device and the required configuration of the IoT Hub.
On the IoT Hub, you need to have activated Defender for IoT and you need to need to register a specific module identity inside an Azure IoT Device.
This even works for Azure IoT Edge devices.
If you are able to get the agent running and have a cloud IoT Hub, that device / VM is monitored by the combination of the agent and the IoT Hub in the cloud.