What is the SCCM version you are using? If you are using SCCM 2207 onboarding may be configured automatically.
The link for your reference: What's new in version 2207 - Configuration Manager | Microsoft Learn
I will be sharing for you if I have any update.
Looking forward to your feedback.
Best regards
Cherry
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.