Lesson 2 of 3 Identity Management Solutions

Providing a Domain for Legacy Azure Workloads

This lesson compares a managed domain with domain controllers on virtual machines.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain why legacy applications need domain services.
  • Describe the limits of Microsoft Entra Domain Services.
  • Choose between a managed domain and AD DS on virtual machines.

The problem

A legacy application may use Kerberos, NTLM or LDAP, or may need a server to be joined to a domain. Microsoft Entra ID does not provide those protocols, so a lifted application will not work with it directly. An architect has two main options: extend the existing AD DS into Azure, or use a managed domain.

Microsoft Entra Domain Services

Microsoft Entra Domain Services provides a managed domain: domain join, Group Policy, LDAP, and Kerberos and NTLM authentication, without domain controllers to deploy, patch or back up. Microsoft runs a replica set in a virtual network subnet that the customer selects. Users and groups synchronize one way, from Microsoft Entra ID into the managed domain, so existing credentials work, although users must have password hashes available to the service.

This convenience brings limits. Customers do not receive Domain Admin or Enterprise Admin rights, the schema is limited in how it can be changed, and the domain is separate from any on-premises domain, so it is not an extension of one. Microsoft positions the service as a transitional capability for Azure-hosted workloads that require legacy authentication. It suits an application that has moved to Azure and only needs a domain to function.

AD DS on Azure virtual machines

The other option is to deploy domain controllers on Azure virtual machines and to join them to the existing forest, connected over VPN or ExpressRoute. The result is the same directory, with full control: schema extensions, Domain Admin rights and trust relationships all remain available. Domain controllers in Azure also reduce authentication traffic across the hybrid link and allow continued operation if the link fails.

The cost is operational. The organization now patches, secures and backs up more domain controllers, and needs to place them across availability zones for resilience. This option is correct when applications need rights or schema features that a managed domain cannot offer, or need to authenticate against the same domain used on-premises.

The following comparison sets the two approaches side by side.

Microsoft Entra Domain Services
ManagementMicrosoft-managed
Domain Admin rightsNo
Schema extensionsLimited
Relationship to on-premises AD DSSeparate managed domain
Choose when Minimal effort for legacy applications in Azure
AD DS on Azure VMs
ManagementCustomer-managed
Domain Admin rightsYes
Schema extensionsYes
Relationship to on-premises AD DSSame forest
Choose when Full control, or the same domain as on-premises

Designing a managed domain

A managed domain needs some planning, despite being a managed service. It is deployed into a dedicated subnet of a virtual network, and other networks reach it through peering or a VPN. The virtual network's DNS settings must point to the domain controllers' addresses, otherwise machines cannot find the domain. A tenant can have one managed domain, and additional replica sets can extend it to other regions, which suits an application deployed in several regions.

Password synchronization needs attention too. Cloud-only users must change their passwords once before their credentials are available to the managed domain, as the hashes needed for Kerberos and NTLM are generated at that point. Hybrid users need the password hashes to be synchronized by the synchronization tool. A design that overlooks this leads to users who cannot sign in to domain-joined servers, even though their cloud sign-in works correctly.

Domain Services also has a limited relationship with on-premises domains. Although objects flow one way, from Microsoft Entra ID into the managed domain, a forest trust can allow it to authenticate users from an on-premises domain, on supported SKUs. This remains different from joining the same forest, because the managed domain is still a separate directory with its own objects and policies.

Select all that apply

Making a managed domain work

Exam skills 1.2.2

Identify what a Microsoft Entra Domain Services design must include.

Log in to try this activity Interactive activities are free with an account.

Choosing among three options

An architect actually has three options, not two, and the order in which they should be considered reflects Microsoft's direction. The first is to modernize the application so that it uses Microsoft Entra ID directly, through OpenID Connect or SAML, which removes the dependency altogether. Where the application cannot change, a managed domain gives it the protocols it needs with the least effort. Only when a requirement exceeds what a managed domain offers should the design extend AD DS onto virtual machines. Exam scenarios usually state the deciding fact directly, such as a need for schema extensions, or a wish to avoid managing domain controllers.

The following diagram shows a managed domain from Microsoft Entra Domain Services between Microsoft Entra ID and the VMs of a lifted application.

Domain join and Kerberos for a lifted application without on-premises AD DS. Microsoft Entra Domain Services provides a managed domain for users already in Microsoft Entra ID; the application's virtual machines join it and users authenticate with Kerberos, and the team manages no domain controllers.
The scenario is illustrative.
Put in order

Order of preference

Exam skills 1.2.2

Arrange the options for a legacy application's domain dependency in Microsoft's order of preference.

Log in to try this activity Interactive activities are free with an account.
Worked example

A lifted application

A company has migrated its directory to the cloud and has no on-premises AD DS left. It must now move a line-of-business application to Azure virtual machines. The application needs servers joined to a domain and authenticates users with Kerberos. The team wants to avoid managing domain controllers. What should you recommend?

Microsoft Entra Domain Services meets these needs: it provides domain join and Kerberos for users already in Microsoft Entra ID, and no domain controllers are managed by the team. The absence of on-premises AD DS removes the main reason for extending a forest.

Domain controllers on virtual machines would work but contradict the requirement to avoid managing them. Application Proxy publishes on-premises applications and does not provide domain services to servers in Azure. Over a longer period, the application should be modernized to use OpenID Connect, because Microsoft regards the managed domain as a transitional measure.

Check yourself

A workload needs a custom schema extension and Domain Admin rights. Can Microsoft Entra Domain Services provide them?

Show answer

No. Customers receive neither Domain Admin rights nor free control of the schema, so AD DS on virtual machines is required.

Exam Tips

Remember for the exam

  • Domain Services gives a managed domain, without Domain Admin rights.
  • AD DS on virtual machines gives full control, at the cost of operating domain controllers.
  • Synchronization to Domain Services is one way, from Microsoft Entra ID.