@lalajee, Thanks for posting in Q&A. Based as I know, this error can occur in a Hybrid Azure AD join scenario if the computer name prefix was incorrectly configured in the Domain Join Profile. For the Hybrid Domain Join you currently cannot use any variables like %SERIAL% or %RAND%, but only a simple Prefix such as TEST-, HAADJ- or ABC- with or without a dash. If you attempt to use a variable, you will get “Server Error Code 80070002”. Please confirm if the Computer name prefix is set correctly.
Meanwhile, the error code 0x80070002 can also occur if you have a space on the domain name. Please check this to see if we have the same issue.
Please try the above suggestions and if there's any update, feel free to let us know.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.