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

MS Techie 2,751 Reputation points
2022-11-07T16:19:52.717+00:00

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 Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,044 questions
Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Andy David - MVP 157.8K Reputation points MVP Volunteer Moderator
    2022-11-07T16:22:18.683+00:00

  2. K Sheahan Kularathne 436 Reputation points
    2022-11-08T05:18:24.857+00:00

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

    concept-azure-ad-join-hybrid


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.