Join azure VM to both Azure AD and on-prem AD ?

MS Techie 2,501 Reputation points

My VM OS is win 2019 server and WIn 10 Multisession OS

Can we join Azure VM to Azure AD and on-premises AD also ?

While creating azure VM , i select the option "Login to Azure AD" and then the VM created will be part of Azure AD . command is dsregcmd /status

But later when i try to join this VM to on-prem AD , i get the error message
"This device is joined to Azure AD. To join an Active directory domain, you first go to settings and choose to disconnect your device from your work or school"

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,908 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
5,295 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
4,359 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Andy David - MVP 121.7K Reputation points MVP

  2. K Sheahan Kularathne 351 Reputation points

    Please find below link on How to Hybrid Joined Devices. Please mark as Accepted if this answer was helpful.