This post is part four of a Microsoft Azure and Entra ID home lab. In this post, Entra Cloud Sync will be installed on an on-premises Windows Server. Then an organizational unit (OU) on the server will be synced with Azure and Entra ID.
Posts in Microsoft Azure and Entra ID Home Lab
Table of Contents This Post
Entra Connect Sync vs Entra Cloud Sync
In this section, we explore the features of Entra Connect Sync and Entra Cloud Sync. They are two methods of synchronizing users and groups between on‑premises Active Directory (AD) and a Microsoft Entra ID tenant.
Entra Connect Sync and Entra Cloud Sync are used primarily for identity management across hybrid work environments. Users in AD are also present in Entra ID, allowing people to access cloud services such as Microsoft 365 and Azure.
Entra Connect Sync Features
Entra Connect Sync is a full-featured, on-premises synchronization tool that connects AD to Entra ID. It is built for larger, complex business environments. It supports advanced features such as multiple authentication methods, writeback, and hybrid identity. Users can make changes to user identities in the cloud that sync to the on-premises network.
Entra Connect Sync is set up by installing an agent on an on-premises Windows server. The agent points to AD and connects to Entra ID using an administrator account. Then you choose how users, groups, devices, and credentials sync from on-premises (AD) to the cloud (Entra ID).
The entire AD can be synced between AD and Entra ID. Or specific objects can be synced based on OUs and defined attributes.
Entra Connect Sync supports the following authentication methods:
- Password Hash Synchronization (PHS) – Hashes of passwords are synced from on-premises AD to Entra ID. Users logging into Azure or Microsoft (MS) 365 authenticate in the cloud using Entra ID.
- Pass-through Authentication (PTA) – Users accessing Azure and MS 365 authenticate using on-premises agents.
- Federation with ADFS – Users accessing Azure and MS 365 authenticate using on-premises ADFS infrastructure.
- Federation with PingFederate – Users accessing Azure and MS 365 authenticate using Ping Identity’s federation service.
We will not configure Entra Connect Sync in this lab.
Entra Cloud Sync Features
Entra Cloud Sync is a lightweight, cloud-managed synchronization tool that connects AD to Entra ID. It was designed for smaller, simpler business environments.
Entra Cloud Sync supports only password hash sync for authentication and provides limited writeback features. Yet Microsoft is adding more features to Entra Cloud Sync.
Users, groups, contacts, and devices can be synchronized from AD to Microsoft Entra ID. Objects are synced based on organization unit (OU) or group. The synchronization occurs every two minutes using a lightweight agent that is installed on-premises and configured in the Entra portal.
Entra Cloud Sync is Replacing Entra Connect Sync
For years Entra Connect was the most popular method of creating a hybrid work environment. Yet Microsoft announced in 2026 that Entra Cloud Sync will entirely replace Entra Connect Sync over the next few years.
There are several reasons for the elimination of Entra Connect Sync:
- Microsoft Prefers Cloud-Managed Architecture – Entra Connect Sync requires on-premises servers and manual updates. Entra Cloud Sync moves configuration to Entra ID which eliminates server maintenance and provides remote management.
- High Availability – By using on-premises servers Entra Connect Sync has a higher likelihood of failure. Entra Cloud Sync supports multiple active provisioning agents that provide automatic failover.
- Reduction of On-Premises Overhead – Entra Connect Sync requires full servers while Entra Cloud Sync uses lightweight agents.
Create OU and User in Active Directory
In this section an Organizational Unit (OU) is created in the on-premises AD. And a user is added to the OU.
Then later Entra Cloud Syn will be installed on the Windows Server. And we will verify that the user added to the on-premises AD is also added to Azure and Entra ID.
Begin by opening Server Manager on the Windows Server. In the top menu click on Tools > Active Directory Users and Computers.
The “Active Directory Users and Computers” window opens. Right click on your domain name (e.g., techwayfarer.com) and choose New > Organizational Unit.
In the “New Object – Organizational Unit” window enter a name for the OU (e.g., Entra Cloud Sync) and click OK.

Right click on the OU just created (e.g., Entra Cloud Sync) and choose New > User.
In the “New Object – User” window fill out the fields for first name, last name, and user logon name. Click Next.

In the next window enter a password for the user and click Next.
The final window provides a summary of the user’s credentials. Click Finish to create the user account.
The new user appears as an object in the new OU.

Install Entra Cloud Sync
In a previous post Windows Server was installed and configured on an Azure VM to simulate an on-premises Active Directory. In this section Entra Cloud Sync is installed on the server.
Turn Off IE Enhanced Security Configuration
The IE Enhanced Security Configuration setting can interfere with the installation of Entra Cloud Sync.
Login to the Windows server and open Server Manager > Local Server. Click the setting for “IE Enhanced Security Configuration” and change the settings to Off for Administrators and Users.

Install Entra Cloud Sync Agent
In this section the Entra Cloud Sync agent is installed on the Windows Server. The download page for Entra Cloud Sync can be accessed through either the Entra ID or Azure portals.
Download Entra Cloud Sync Agent in Entra ID Portal
- Open the Microsoft Edge browser, go to entra.microsoft.com, and login.
- In the left menu choose Entra ID > Entra Connect.
- In the “Microsoft Entra Connect | Get started” window click on the Cloud Sync tab.
- In the “Cloud sync | Configurations” window, under Monitor click on Agents.
- In the “Cloud sync | Agents” window, click “Download on-premises agent.”
- In the “Download Provisioning Agent” pop-up window click “Accept terms & download.”
Download Entra Cloud Sync Agent in Azure Portal
- Open the Microsoft Edge browser, go to azure.microsoft.com, and login.
- Click on the menu button in the top left corner and choose “Microsoft Entra ID.”
- In the overview page (e.g., Techwayfarer | Overview) click on Manage > Microsoft Entra Connect in the left menu.
- In the “Microsoft Entra Connect | Get Started” window, click on the Manage tab.
- Under “Manage from the cloud: Cloud Sync” click on “Download Provisioning agent.”
- In the “Download Provisioning Agent” window click “Accept terms and download.”

Install Provisioning Agent
The agent will download into the Downloads folder on the server. Right click on the application and choose Open.
The “Microsoft Entra Provisioning Agent Package” window opens. Click the checkbox “I agree to the license terms and conditions” and click Install.

After the Microsoft Entra provisioning agent is installed the “Microsoft Entra Provisioning Agent Configuration” window opens. Click the box “Connect to your Active Directory domain(s)” and click Next.

In the “Connect Microsoft Entra ID” tab enter your administrator username for Entra ID and click Authenticate.

In the Microsoft sign-in window enter your Entra ID password and click “Sign in.”

While attempting to login, if you receive an error message asking you to update your browser complete the following steps:
- Set up MFA in Entra ID. Go to Entra ID > Authentication methods. In the “Authentication methods | Policies” window, under “Authentication method policies” choose “Microsoft Authenticator” and enable it.
- Set Microsoft Edge as the default browser on the Windows Server. Go to System > Apps > Default Apps.
- Login to Entra ID in Microsoft Edge and choose to stay logged in.
- Restart the “Microsoft Entra Provisioning Agent Configuration” wizard.
In the “Configure Service Account” tab we are told that a group managed service account (gMSA) has to be created to synchronize from AD to Entra ID. Choose the option “Create gMSA”, so the wizard creates the gMSA for you. Enter the on-premises administrator account credentials that were created in a prior post. Click Next.

In the “Connect Active Directory” tab verify the domain name, click “Add Directory”, and click Next.

In the Confirm tab verify the settings and click Confirm.
The provisioning agent may take a few minutes to complete the configuration. Then click Exit.

Verify Installation
We can verify that the agent is active on the on-premises server and visible in Azure and Entra ID.
Login to Entra ID. In the left menu go to Entra ID > Entra Connect.
In the “Microsoft Entra Connect | Get Started” page click on “Cloud Sync.”
In the “Cloud sync | Configurations” window, under Monitor click on Agents. The Entra Cloud Sync agent should be active on the server.

Create Cloud Sync Profile
In this section a cloud sync profile is created in Entra ID to specify what is going to be synced between the on-premises Windows Server and the cloud. You could also create the cloud sync profile in Azure.
Log into Entra ID and choose Entra ID > Entra Connect in the left menu.
In the “Microsoft Entra Connect | Get Started” page click “Cloud Sync.”
The “Cloud sync | Configurations” page opens. In the Configurations tab click the “New configuration” drop down menu, and choose “AD to Microsoft Entra ID sync.”

In the “New cloud sync configuration” window the agent installed earlier for our domain (techwayfarer.com) is displayed in the list of active agents. Password hash sync is enabled as the method of syncing user passwords between the on-premises AD and Entra ID. Click Create.

When the cloud sync configuration is complete, we are taken to the profile page (e.g., techwayfarer.com | Overview).

Under Manage click on “Scoping filters.”
The “techwayfarer.com | Scoping filters” page opens (see below). Choose “Sync selected organization units” since we are syncing an OU.
The distinguished name of the OU on the on-premises server is needed to complete the sync. To access the distinguished name log onto the server, open Server Manager, and choose Tools > Active Directory Users and Computers (ADUC).
In ADUC choose View > Advanced Features. Under the domain name (e.g., techwayfarer.com) right click on the OU created earlier (e.g., Entra Cloud Sync) and choose Properties.
In the “Entra Cloud Sync Properties” window, click on the “Attribute Editor” tab, scroll down, and click on distinguishedName. In the “String Attribute Editor” window copy the distinguished name value.

In the “techwayfarer.com | Scoping filters” page, paste the distinguished name into the field next to “Sync selected organizational units.” Click Add and then Save.

After a few minutes the OU will be set for synchronization, and a confirmation message will appear.
Click Overview and the “techwayfarer.com | Overview” page opens. Click on “Review and enable” and the “Review and enable configuration” window opens. Verify the settings are correct and click “Enable configuration.”

The configuration will take a few minutes to complete.
The new configuration can be viewed in the “Cloud sync | Configurations” window. Access it by clicking Entra ID > Entra Connect in the left menu. Then in the “Microsoft Entra Connect | Get Started” page click “Cloud Sync.” The configuration name, sync direction, and status are displayed.

Verify Sync Between AD and Entra ID
Earlier in this post the ADUC tool on the server was used to create an OU (e.g., Entra Cloud Sync). And a user (e.g., William Shakespeare) was created and placed in the OU. Then the OU was synced with Entra ID.
In this section we verify that the sync between the on-premises AD and Entra ID is working correctly. In Entra ID click on Entra ID > Users in the left menu.
On the Users page the AD user (e.g., William Shakespeare) appears in the list. Note that “On-premises sync enabled” is set to Yes for the user.

Click on the name of the user (e.g., William Shakespeare) and click “Edit properties.” We are unable to change the user’s name because the source of authority is the on-premises AD and not Entra ID.

Delete Lab Resources
In this section the resources created for the lab are deleted to avoid accruing charges in Azure and Entra ID.
Delete Azure Resources
Azure charges for the following resources created in the lab: the VM, disk storage on the VM, and the public IP address used to access the VM.
All the resources used in the lab are contained within resource groups (RGs). To delete the lab resources, we only need to locate the RGs created in the lab and delete them.
Click on the menu button in the top left corner of Azure and choose “Resource groups.” There are two RGs listed. In an earlier post, we created one of the RGs (e.g., vmnet1-rg) that contains all of the lab resources.
The other RG (e.g., NetworkWatchRG) is created automatically by Azure and does not accrue charges on your account. You may want to delete it to keep your account more organized.

In the “Resource Manager | Resource groups” page, click on the name of a resource group (e.g., vmnet1-rg).
The details page for the resource group opens. Under the Resources tab click “Delete resource group.”

A window titled “Delete a resource group” opens. Copy the name of the group into the field and click Delete.

Delete Cloud Sync
Go to the “Cloud sync | Configurations” page in either Azure or Entra ID. Click the three dots under Actions and choose “Delete configuration.”

Conclusion
We are done syncing an on-premises AD with Azure and Entra ID.
Key Takeaways:
- Entra Cloud Sync is a lightweight tool used for identity management in hybrid work environments.
- Entra Cloud Sync is replacing Entra Connect Sync.
- Avoid extra charges in an Azure account by deleting resources that are no longer needed. By deleting a RG all the resources it contains are also deleted.
We have completed the Microsoft Azure and Entra ID home lab.








