Jump to content

Troubleshooting hybrid Azure AD errors during Windows 365 Cloud PC provisioning


Recommended Posts

Guest Steven DeQuincey
Posted

With Windows 365, you can automatically provision Windows virtual machines (Cloud PCs) and manage them alongside your organization’s other devices in Microsoft Endpoint Manager. A prerequisite for using Cloud PCs is that the devices must be hybrid Azure Active Directory (Azure AD) joined.

 

Some organizations may need to configure new hybrid Azure AD environments to accommodate Cloud PCs, while others can utilize their existing hybrid Azure AD environments to connect their on-premises resources and cloud-based services. If you have an existing environment, you may need to modify your hybrid Azure AD configuration to successfully provision Cloud PCs.

 

This article outlines scenarios and troubleshooting guidance for provisioning failures related to hybrid Azure AD. When encountering these scenarios, you’ll see an error message similar to the following screenshot:

 

largevv2px999.png.f1a8cdbbb00926ea04a13f5b2d21f6f7.png

 


Note: This article applies only to hybrid Azure AD joined devices, which is a requirement for Cloud PC. Azure AD join support is not yet available for Cloud PC.

Scenario 1: The SCP record is missing.

 

 

Azure AD Connect synchronizes computer objects. The computer knows which Azure AD domain to register with by looking for a service connection point (SCP) object in Active Directory. You can find these in the ADSI Edit tool, under Configuration > Services > Device Registration Configuration. You will see a GUID and in that record a multistring value with your Azure AD tenant name and GUID.

 

largevv2px999.png.1c56378622b653b49402eb0f280390ca.png

 

If they are missing, you can create them with Azure AD Connect during the hybrid configuration process.

 

largevv2px999.png.40fad29b8f2d67af1dc94a9af4798ec7.png

 

There may be scenarios where you only want specific computers from an individual organizational unit (OU) to perform hybrid Azure AD join. To do this, skip the SCP record creation and instead create a custom Group Policy Object (GPO) and link it to the OU in which your Cloud PC is located. In the GPO, you will need to create two registry keys with the value names TenantId and TenantName, as shown in the following example.

 

largevv2px999.png.0f7fa2e9b98071583a5043a962ac9d93.png

 

For more details on this method, see Controlled validation of hybrid Azure AD join.

 

Scenario 2: The OU that you added your Cloud PCs to isn’t in the scope of your Azure AD Connect synchronization.

 

 

If you created a new OU for your Cloud PCs, it may not be included yet. As a result, you'll need to go back into Azure AD Connect and include it in the synchronization rules. For detailed instructions, see Customize an installation of Azure AD Connect.

 

largevv2px999.png.1fe16de68d3e12c1e51818ac59b9d39d.png

 

Scenario 3: Azure AD synchronization and replication cause delays.

 

 

The Cloud PC provisioning process times out after 90 minutes, and your environment might be configured to introduce unwanted delays. Let’s discuss two scenarios where this occurs: synchronization and replication.

 

Azure AD synchronization interval

 

 

The default Azure AD Connect sync interval is every 30 minutes. The time it takes to complete the synchronization process depends on the number of objects Azure AD Connect is processing.

 

To prevent your Cloud PCs from timing out, you need to make sure that sync interval and sync time are, combined, less than 90 minutes. First, confirm that your sync service is running and that its interval hasn’t been extended, for example, to every two hours. For instructions, see Azure AD Connect sync: Scheduler. Next, if you are synchronizing a lot of objects, review this document to learn how to optimize your environment: Factors influencing the performance of Azure AD Connect.

 

Active Directory Domain Services inter-site replication

 

 

Consider this Active Directory Domain Services (AD DS) topology. We have a domain controller in one site running Azure AD Connect, and a domain controller in a different site that the Cloud PC provisioning service uses to create computer objects.

 

mediumvv2px400.png.55aef042d099b1469a71f2353d1b022a.png

 

In the previous point, we explained that the Azure AD Connect sync interval and synchronization time need to complete before Cloud PC provisioning times out (90 minutes). This scenario adds an additional time to consider: the inter-site replication time for the domain. The default for this is 15 minutes, which, if added to the total possible time for computer objects to appear in AD DS and then in Azure AD, creates a new total time of one hour.

 

largevv2px999.png.0a05569cffa4d2df85a759d7aa2f4792.png

 

This is the theoretical maximum time, and not applicable to every organization, however we have seen examples of long inter-site replication times causing time out issues. The takeaway is that if you have long-running sync times due to size and complexity, try to minimize any other possible delays. With modern connectivity, there isn’t often a reason to limit inter-site sync intervals, so you might want to consider setting replication to the default 15 minutes.

 

Summary

 

 

With hybrid Azure AD join, you can secure access to your Cloud PCs and manage them along with other devices in your organization. Once your hybrid Azure AD configuration is set up to accommodate Cloud PCs, your resources will provision without any issues. If you’ve had other challenges with hybrid Azure AD and your Cloud PCs, please add a comment below.

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...