How do I connect an on prem Windows Server VM running in vCenter to my managed domain service running in azure

Peniel Bikila 0 Reputation points
2024-01-10T18:30:30.9166667+00:00

Hello, I am trying to test the managed domain services to solve a current need. We currently have an on-prem data center where we have vCenter. We decided we wanted to be able to use SSO using our Azure identities and stop using local accounts. I want to be able to use the managed domain to create an ADFS on-prem and have my cloud identities synced over to on-prem and be able to then connect vcenter and use SSO with those identities. In the articles and guides, Microsoft recommends another subnet in the vnet and launching a Windows server to join the domain. What if I want to use the existing Windows server VM in my on-prem vCenter to join the domain? How would I accomplish this? I do not want to launch and pay for a Windows server when I already have an on-prem environment with resources to deploy VMs. Additional questions I have: How does one connect and manage the domain controllers after creating the managed domain service? Does the first Windows server to connect to the domain become a DC?

Windows for business | Windows Server | User experience | Other
Microsoft Security | Microsoft Entra | Other
{count} votes

2 answers

Sort by: Most helpful
  1. Sedat SALMAN 14,180 Reputation points MVP
    2024-01-10T20:39:46.5733333+00:00

    first, you need to set up a network connection between your on-prem environment and Azure, configure domain services in Azure, and then join your on-premises VM to the Azure domain.

    to complete this steps you need to follow this documents

    https://learn.microsoft.com/en-us/entra/identity/domain-services/join-windows-vm

    https://learn.microsoft.com/en-us/windows-server/manage/windows-admin-center/azure/

    https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-authentication/GUID-3818FE5A-3530-4215-9439-7C6813C94252.html

    0 comments No comments

  2. Luis Arias 8,621 Reputation points Volunteer Moderator
    2024-01-10T20:55:43.22+00:00

    Hi Peniel Bikila,

    If you want to use the existing Windows server VM in my on-prem vCenter and join to a domain you can follow below recommendations:

    • First verify that you VM can reach the managed domain on the virtual network. If you don't receive a prompt that asks for credentials to join the domain, there's a connectivity problem.
    • Verify the VM is connected to the same virtual network that Domain Services is enabled in, or has a peered network connection. Try to ping the DNS domain name of the managed domain, such as ping aaddscontoso.com. If the ping request fails, try to ping the IP addresses for the managed domain, such as ping 10.0.0.4. The IP address for your environment is displayed on the Properties page when you select the managed domain from your list of Azure resources.
    • Id you can ping the IP address but not the domain, DNS may be incorrectly configured. Confirm that the IP addresses of the managed domain are configured as DNS servers for the virtual network. Try to flush the DNS resolver cache on the virtual machine using the ipconfig /flushdns command.
    • If you receive a prompt that asks for credentials to join the domain, but then an error after you enter those credentials, the VM is able to connect to the managed domain. The credentials you provided don't then let the VM join the managed domain.
    • Make sure that the user account you specify belongs to the managed domain. Confirm that the account is part of the managed domain or Microsoft Entra tenant. Accounts from external directories associated with your Microsoft Entra tenant can't correctly authenticate during the domain-join process.

    After that you connect and manage the domain controllers after creating the managed domain service, you can use the same Remote Server Administration Tools (RSAT) as with an on-premises Active Directory Domain Services domain. As Domain Services is a managed service, there are some administrative tasks that you can't perform, such as using remote desktop protocol (RDP) to connect to the domain controllers.

    Regarding your additional questions:


    References and additional help:

    Let me know if you have additional doubts, Luis


    If the information helped address your question, please Accept the answer.

    0 comments No comments

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.