Thank you for posting in Microsoft Q&A forum.
You might troubleshoot the Microsoft Defender for Endpoint onboarding process with this guidance:
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".