How to join a Windows Server virtual machine to Azure Active Directory Domain Services

Similar to traditional Active directory, you can join Azure Virtual Machines to Azure Active Directory Domain Services and provide management services. In this post we are going to go through joining your Azure virtual machine to AD DS. 

Prerequisites

  • Azure Active Directory Domain Services configured in your 365 tenant and configured on your network
  • A Window Server 2019 virtual machine created
 
This process is the same as when connecting a computer to a domain on a regular on-premise Active Directory. 
 

1. Open Server Manager, on the left hand side select Local Server and on the right hand side, click on Workgroup.

2. In the System Properties windows select Change.

3. In the Domain area, type in the name of your managed domain. Such as ourcloudnetwork.com and select OK.

4. You will then be prompted for your domain credentials to join your Virtual Machine to Azure Active Directory Domain Services. Your account details can be specified in either format; the UPN suffix ([email protected]) or SAMAccountName format (ourcloudnetwork\user1). 

5. You will then receive the popup Welcome to the ourcloudnetwork domain.

6. Restart the virtual machine.

 

Join your Azure Virtual Machine to Azure Active Directory Domain Services with Powershell

You can use the Add-Computer Powershell cmdlet to Join your Azure Virtual Machine to Azure Active Directory. 

Add-Computer -DomainName OURCLOUDNETWORK -Restart

When prompted for credentials simple enter your Azure AD login like the above and restart your virtual machine.