Hello @Veeramalla Rakesh - (Digital)
Thank you for reaching out.
I see that you are planning to build on-premise server with Windows Server 2022 and want to join to Azure AD.
Please note that Azure AD Join supports Windows 10, Windows 11 but Windows Server operating systems is not supported. Please review supported devices or below documentation for list of supported operating systems.
Azure AD joined devices
In case you are also exploring hosting the machine on cloud then you can use Windows virtual machines (VMs) in Azure by integrating with Azure Active Directory (Azure AD) authentication. Please review below article for details as this is currently available with specific Windows distributions.
Log in to a Windows virtual machine in Azure by using Azure AD
I hope this answers your query.
--------------------
Please Accept Answer and Upvote, if any of the above helped, this thread can help others in the community looking for remediation for similar issues.