Many organizations desire to leverage Azure Virtual Desktop (AVD) and create environments with multiple on-premises Active Directory forests. This article expands on the architecture described in the AVD at enterprise scale article and helps understand how multiple domains and AVD can be integrated using Azure AD Connect to sync users from on-premises Active Directory Domain Services (AD DS) to Azure Active Directory (Azure AD).
The following are some relevant use cases for this architecture:
- Mergers and acquisitions, organization rebranding, and multiple on-premises identities.
- Complex on-premises active directory environments (multi-forest, multi-domains, group policy (or GPO) requirements, and legacy authentication).
- Use of on-premises GPO infrastructure with AVD.
Active Directory Domain Services (AD DS) is a self-managed, on-premises component in many hybrid environments, whereas Azure Active Directory Domain Services (Azure AD DS) provides managed domain services with a subset of fully-compatible traditional AD DS features such as domain join, group policy, LDAP, and Kerberos/NTLM authentication. Read a detailed comparison of these components in Compare self-managed Active Directory Domain Services, Azure Active Directory, and managed Azure Active Directory Domain Services. The solution idea Multiple AVD forests using Azure Active Directory Domain Services discusses this architecture using the cloud-managed Azure AD DS.
This architecture diagram shows a typical scenario that involves the following:
- Azure AD tenant is available for the new company named as
- Azure AD Connect syncs users from on-premises AD DS to Azure Active Directory (Azure AD).
- Each of the company A and company B has a separate Azure subscription. They also have a shared services subscription referred to as the Subscription 1 in the above diagram.
- An Azure hub-spoke architecture is implemented with a shared services hub virtual network (VNet).
- Complex hybrid on-premises Active Directory environments are present with two or more AD forests. Domains live in separate forests, each with a different UPN suffix. For example, companyA.local with the UPN suffix companyA.com, companyB.local with the UPN suffix CompanyB.com, and an additional UPN suffix newcompanyAB.com.
- Domain controllers for both forests are located on-premises and in Azure.
- Verified domains are present in Azure for CompanyA.com, CompanyB.com, and NewCompanyAB.com.
- Group Policy (GPO) and legacy authentication such as Kerberos, NTLM, and LDAP are used.
- Azure environments that still have dependency on-premises infrastructure, private connectivity (Site-to-site VPN or Azure ExpressRoute) is set up between on-premises and Azure.
- The AVD environment consists of a AVD workspace for each business unit, and two host pools per workspace.
- The AVD session hosts are joined to domain controllers in Azure, that is, companyA session hosts join the companyA.local domain, and CompanyB session hosts join the CompanyB.local domain.
- Azure Storage accounts can leverage Azure Files for FSLogix profiles. One account is created per company domain (that is, companyA.local and companyB.local), and joined to the corresponding domain.
Additionally, the following components are also used in this architecture:
Azure AD connect in staging mode: Staging server for Azure AD Connect topologies provides additional redundancy for the Azure AD connect instance.
Azure subscriptions, AVD workspaces, and host pools: Multiple subscriptions, AVD workspaces, and host pools can be leveraged for administration boundaries and business requirements.
In this architecture, the identity flow works as follows.
- Azure AD Connect syncs users from both CompanyA.com and CompanyB.com to Azure AD tenant (NewCompanyAB.onmicrosoft.com).
- Host pools, workspaces, and app groups are created in the respective subscriptions and spoke virtual networks.
- Users are assigned to the app groups.
- AVD session hosts in the host pools join the domains CompanyA.com and CompanyB.com using the domain controllers in Azure.
- Users sign in using either the AVD Desktop or a web client with the corresponding format: user@NewCompanyA.com, user@CompanyB.com, or user@NewCompanyAB.com, depending on the UPN suffix configured.
- Users are presented with their respective virtual desktops or apps. For example, users in CompanyA will be presented with virtual desktops or apps in Workspace A, host pool 1 or 2.
- FSLogix user profiles are created in Azure Files shares on the corresponding storage accounts.
- Group Policy Objects (GPO) synced from on-premises are applied to users and AVD session hosts.
Keep in mind the following considerations while designing your workload based on this architecture.
Group Policy Objects (GPO)
- To extend GPO infrastructure for AVD, the on-premises domain controllers should sync to the Azure IaaS domain controllers.
- Extending the GPO infrastructure to Azure IaaS domain controllers requires private connectivity.
Network and connectivity
- The domain controllers are shared components, so they need to be deployed in a shared services hub VNet in this hub-spoke architecture.
- AVD session hosts join the domain controller in Azure over their respective hub-spoke vNet peering.
The following design considerations apply to user profile containers, cloud cache containers, and MSIX packages:
- Both Azure Files and Azure NetApp Files can be used in this scenario. Choose the right solution based on factors such as expected performance, cost, and so on.
- Both Azure Storage accounts and Azure NetApp Files present the same limitation of being able to join to one single AD DS at a time. In these cases, multiple Azure Storage accounts or Azure NetApp Files instances will be required.
Azure Active Directory
In scenarios with users in multiple on-premises Active Directory forests, only one Azure AD Connect sync server is connected to the Azure AD tenant. An exception to this is an AD Connect used in staging mode.
The following identity topologies are supported:
- Multiple on-premises Active Directory forests.
- One or more resource forests trust all account forests.
- A full mesh topology allows users and resources to be in any forest. Commonly, there are two-way trusts between the forests.
For more details, read the Staging server section of Azure AD Connect topologies.
For more information, see the following articles:
- Azure AD Connect topology.
- Azure Virtual Desktop for the enterprise article
- Compare different Identity options: Self-managed Active Directory Domain Services (AD DS), Azure Active Directory (Azure AD), and Azure Active Directory Domain Services (Azure AD DS).
- Solution idea: Multi forest with Azure AD DS.
- Azure Virtual Desktop Documentation.