Connection set up issue

Hey all, How yall are doing?

I am facing an issue setting up the MS Defender for Endpoint plugin in Rapid7. We checked with the API Permissions, secret key value, tenant id, and application id. All seems to be fine but, when I tried setting up the connection using orchestrator, it got rejected. Again I tried with another option i.e., Cloud and connection was succeeded. What could be the reason for error while trying to connect in orchestrator which is not the case with Cloud?

Thanks!