Hi M, Akhil,
Thank you for posting in the Q&A Forums.
I. Options Analysis
Azure AD Join
For scenarios where you wish to join the device directly to the Azure AD environment.
In this scenario, the devices will be authenticated and managed using Azure AD.
This is a viable option if your clients are already using Azure AD for identity synchronization and you want those servers to take advantage of the authentication and management capabilities of Azure AD as well.
Azure Hybrid Join
For scenarios where you need access to both local and cloud resources.
With hybrid join, devices can join both Azure AD and local AD, enabling synchronization and management of identities between cloud and local.
Hybrid join is a good option if your clients need frequent access and interaction between Azure and local environments.
Domain Join
The most traditional way of joining, directly joins the device to the local AD domain.
In this case, the device will rely solely on the local AD for authentication and management.
If your clients rely primarily on the local AD for authentication and management and do not want or need to join the device to Azure AD, you can choose domain join.
II Azure Hybrid Join Configuration
Configuration steps
First, make sure your local AD has been properly configured and identity synchronized with Azure AD.
Then, follow Microsoft's official documentation to configure hybrid join using Azure Portal or PowerShell scripts.
During the configuration process, you need to specify some settings such as device enrollment policies, certificates, etc.
Quick Route Setup and Port Opening
For fast routing setup, you need to ensure that the network connection between the Azure VM and the local DC is open.
This usually involves configuring cross-border connection technologies such as VPN or ExpressRoute.
In terms of ports, you need to ensure that the following ports are open:
Port 88 for TCP and UDP (for Kerberos authentication).
Port 389 for TCP and UDP (for LDAP).
Port 445 for TCP (for SMB/CIFS).
Port 464 for TCP (used for Kerberos password change).
Port 53 for TCP and UDP (if DNS is also running on the DC).
Private DNS resolver
If you are using a private DNS resolver instead of a Vnet-level custom DNS, you need to make sure that this DNS resolver is able to correctly resolve the DNS names of your AD domain controllers and Azure resources.
This may require you to configure some conditional forwarders or static DNS entries in the DNS resolver.
Connecting to the domain controller
After configuring the network connection and DNS resolution, you should be able to join the Azure VM to the AD domain without any problems.
If you encounter connection issues, check the configuration of network connectivity, firewall rules, DNS resolution, etc.
III. Prerequisites for domain join/hybrid join
Local AD Environment
Ensure that the local AD environment is healthy and accessible.
Make sure the AD domain controller is properly configured and running.
Azure Environment
Ensure that the Azure subscription is active and that you have sufficient permissions to create and manage resources.
Ensure that Azure VMs are created and running, and that network connectivity is configured.
Authentication and Authorization
Ensure that you have sufficient permissions to join the device to the AD domain.
If you are using hybrid join, you also need to ensure that identity synchronization between Azure AD and the local AD has been properly configured.
Best regards
NeuviJ
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.