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

MS Techie 2,681 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.
7,164 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,907 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,584 questions
0 comments No comments
{count} votes

2 answers

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

  2. K Sheahan Kularathne 431 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