Hello @Akesh Jadhav ,
Thank you for reaching out to Microsoft QnA platform. Similar question has been answered on our StackOverflow community page for Azure/Entra ID.
Answer Link: https://stackoverflow.com/questions/78725051/how-to-register-device-on-entra-id-programatically
I hope this helps and hence would request you to please "Accept the answer" if the information helped you. This will help us and others in the community as well.