Monitoring 0365 Connector

If i read the documentation correctly the easiest way is to use the login portion and also the request part from the normal Azure agent. Then you can switch the URLs from Azure to MS security center.
With this you get an special agent directly usable from your monitoring server.
The “Hello world” example is a good and easy start Hello World for Microsoft Defender for Endpoint API | Microsoft Learn