Complete Guide to Installing Azure AD Connect

Author

Reads 802

Close-Up Shot of a Person Using a Laptop
Credit: pexels.com, Close-Up Shot of a Person Using a Laptop

Installing Azure AD Connect is a crucial step in synchronizing on-premises identities with Azure Active Directory. You'll need to download the Azure AD Connect installation package from the Microsoft Download Center.

The installation package is available in different versions, including the Express, Custom, and Password Hash Synchronization (PHS) versions. Each version has its own set of features and requirements.

To ensure a smooth installation process, it's essential to have a domain administrator account with the necessary permissions. This will allow you to configure the Azure AD Connect server and synchronize user identities.

The Azure AD Connect installation process involves several steps, including preparing the environment, installing the software, and configuring the synchronization settings.

Setup Prerequisites

Your on-prem Active Directory domain and Azure environment must meet specific requirements before installing Azure AD Connect.

First, ensure your local domain is routable, or set up an alternate UPN suffix that matches your verified domain in 365. You can find more information on how to do this on Microsoft's documentation.

Credit: youtube.com, 42. Install and Configure Azure AD Connect to Sync On Premises AD Users

The Azure AD Connect server must be joined to your on-prem AD domain, and the server must meet a specific PowerShell Execution Policy prerequisite. The policy must be configured to allow signed PowerShell scripts to run, which can be checked using the Get-ExecutionPolicy command.

To configure the Execution Policy, navigate to Computer Configuration -> Policies -> Administrative Templates -> Windows Components -> Windows PowerShell in your group policy. Set the "Turn on Script Execution" policy to "Enabled" and choose "All local scripts and remote signed scripts" from the dropdown list.

Network connectivity is also crucial. Ensure that the Azure AD domain for your AD Connect installation and synching has a green tick with the word "Healthy" in the Status column. If you're using a proxy, check that it's configured correctly, with the proxy address, port, and bypass on local settings all properly set.

Here are the key prerequisites you need to meet:

  1. Your local domain must be routable or have an alternate UPN suffix that matches your verified domain in 365.
  2. The Azure AD Connect server must be joined to your on-prem AD domain.
  3. The PowerShell Execution Policy must be set to "RemoteSigned" or "All local scripts and remote signed scripts".
  4. Network connectivity must be established between your on-prem Active Directory domain joined server and Azure AD.
  5. Ensure your on-prem Active Directory schema version and forest level meet the minimum requirements (Windows Server 2003 or later).

By meeting these prerequisites, you'll be well on your way to a successful Azure AD Connect installation.

Joining Server to On-Prem Domain

Credit: youtube.com, 42. Install and Configure Azure AD Connect to Sync On Premises AD Users

To join your server to the on-prem domain, you'll need to ensure it's running a compatible operating system. Windows Server 2019 is supported, but if you're using Windows Server 2022, check if Microsoft has started supporting it yet.

Make sure your server is running the correct operating system, as installing Azure AD Connect on an unsupported version will cause issues. If you're using Windows Server 2022, change the server you plan to install AD Connect on if necessary.

Setup and Download

To download and set up Azure AD Connect, you'll need to meet the prerequisites outlined in the Azure AD Connect Installation and Setup Prerequisites section. This includes requirements for your on-premise AD and Azure environments.

First, ensure your local domain is routable or set up an alternate UPN suffix that matches your verified domain in 365, as Chris mentioned in the comments section of the "How to Install and Setup Azure AD Connect" article.

To download the Azure AD Connect MSI installation file, click the Microsoft Azure Active Directory Connect download link from a domain-joined Windows server. Then, click the Download link to download the MSI package file.

Writable Domain Controller

Credit: youtube.com, Setting up Active Directory in Windows Server 2019 (Step By Step Guide)

To ensure a smooth setup, it's crucial to verify that the Domain Controller for Azure AD is writable. Azure AD does not support read-only domain controllers.

Make sure to check the Domain Controller's status before proceeding with the installation. You can do this by verifying that it's writable.

In case you're using Windows Server 2019 or 2022, be aware that Azure AD Connect installation on Windows Server 2022 was not initially supported. If you're using Windows Server 2022, check if Microsoft has started supporting it.

Download MSI File

To download the MSI file, you need to click the Microsoft Azure Active Directory Connect download link from the domain-joined Windows server where you plan to install AD Connect.

The next step is to click the Download link to download the MSI package file, which will start the download process.

The file you need to download is the Azure AD Connection MSI installation file, which will be used for the installation process.

You can find the download link on the domain-joined Windows server, and it's essential to have this server ready before proceeding with the download.

Prerequisites

Credit: youtube.com, How to Download and Install Prerequisites In Parallel During the Installation Process

Before you start the setup and download process for Azure AD Connect, you need to ensure you meet the prerequisites.

Your on-prem AD and Azure environments must meet a host of requirements. To determine if you're satisfactory, check the subsequent subsections for guidance.

You need an Azure AD tenant to proceed. This is a non-negotiable requirement.

To add and verify a custom domain, you'll need to follow Microsoft's guidelines. This will ensure your domain is recognized in Azure AD.

On-premises Active Directory schema version and forest level must be Windows Server 2003 or later. This is a crucial requirement to ensure compatibility.

To check the current ExecutionPolicy on the server, run the Get-ExecutionPolicy command on a PowerShell console. If the command returns “RemoteSigned,” then you’re good to go.

Here's a quick rundown of the key prerequisites:

Your Azure AD domain for your AD Connect installation and synching must have a green tick with the word “Healthy” in the Status column. This ensures connectivity between your on-prem Active Directory domain joined server and Azure AD.

You'll also need to ensure your local domain is routable or set up an alternate UPN suffix that matches your verified domain in 365. This might require some configuration tweaks, but it's essential for a successful installation.

Configuration

Credit: youtube.com, How To Install and Configure Azure AD Connect

To configure Azure AD Connect, you'll need to enter the credentials of an enterprise administrator account for your on-premises Active Directory. These credentials are used to create the local Active Directory account that is used for synchronization.

You'll have two options to configure Azure AD Connect: express settings and custom settings. Express settings will install Azure AD Connect with default settings, while custom settings will allow you to configure every option.

On the next page, enter the Global Admin account to connect with Azure AD and tap on next. Then, enter the Enterprise admin account to connect with On-prem AD and tap on next. This will fetch the available UPN Suffix, but you can select the option to continue without matching all UPN suffixes to the verified domain.

Here's a quick rundown of the configuration process:

Select Options in User Sign-in Page

To sign in to Azure AD, you can select options on the "User sign-in" page. This page allows you to choose how your on-premises AD users will sign in to Azure AD.

Credit: youtube.com, How to Disable Sign in Options in Windows 10 Settings

The default option for on-premises AD users is to use their on-premises AD username and password. This is achieved through Password Hash Synchronization, which is the first option on the page.

You can also configure Azure AD sign-in options for on-prem users on the "Azure AD sign-in configuration" screen. The default option on this screen is to use userPrincipalname, which is selected by the Azure AD installation and configuration wizard.

To use the UPN option, your on-prem AD domain name must be added and configured on the Office 365 domain page. You can do this by adding your on-prem AD domain name to the Office 365 registered domain list and clicking the "Refresh" icon.

Domain and OU Filtering

Domain and OU filtering is a crucial step in configuring Azure AD Connect. By default, Azure AD Connect selects "Sync all domains and OUs" but you can choose to sync only specific containers.

To sync specific containers, you can select "Sync selected domains and OUs". I did this in my setup, syncing only one OU – "Writers" OU.

Credit: youtube.com, Azure AD Connect Filtering |Configure Group based, Domain based, OU based, Attribute based filtering

You can customize the synchronization options by reopening the Azure AD Connect tool and selecting "Customize synchronization options". This will allow you to filter the OUs you want to sync.

To filter the OUs, you'll need to enter the password of the Azure AD Global Administrator account and select the OUs you want to sync. You can expand your domain tree to select the OUs you want to include.

Here are the steps to follow:

  • Open Azure AD Connect and click Configure
  • Select Customize synchronization options
  • Enter the password of the Azure AD Global Administrator account
  • Click Next to go to Domain/OU Filtering
  • Select Sync selected domains and OUs
  • Expand your domain tree and select the OUs you want to sync

Configure

To configure Azure AD Connect, you'll need to enter the credentials of an enterprise administrator account for your on-premises Active Directory. These credentials are used to create the local Active Directory account that is used for synchronization.

You'll also need to select the option to use express settings or customize your configuration. Using express settings will install Azure AD Connect with default settings, while customizing will give you more control over each option. For this example, we'll be using express settings.

Security Logo
Credit: pexels.com, Security Logo

Enter the Global Admin account to connect with Azure AD and tap on next. Then, enter the Enterprise admin account to connect with On-prem AD and tap on next. This will fetch the available UPN Suffix.

If you have a custom domain that's been verified, you can select "Continue without matching all UPN suffixes to the verified domain" and tap on next. This will take you to the ready to configure page.

On this page, you can select "Start the synchronization process when the configuration is completed" or manually initiate the sync once the installation is completed. Click on "Install" to complete the configuration.

Here are the default sync settings:

  1. Sync time: 30 minutes
  2. Delta sync modified objects
  3. Initial will initiate a full sync

After the configuration is completed, you can check the sync status. The sync status should be enabled, and the last sync should be less than 1 hour ago. Password hash sync should also be enabled.

Frequently Asked Questions

How to setup an Azure AD connector?

To set up an Azure AD connector, navigate to Settings > Active Directory in the portal and select + Add Connector. This will guide you through the process of adding a new Active Directory connector.

Does Azure AD Connect need to be installed on a domain controller?

Azure AD Connect can be installed on a domain controller when using Express settings. However, a custom settings installation allows for a stand-alone server, not requiring domain controller membership.

Is Azure AD Connect going away?

Azure AD Connect versions prior to 1.x will be retired on August 31, 2022, due to unsupported SQL Server 2012 components. This retirement affects users relying on these outdated versions.

Judith Lang

Senior Assigning Editor

Judith Lang is a seasoned Assigning Editor with a passion for curating engaging content for readers. With a keen eye for detail, she has successfully managed a wide range of article categories, from technology and software to education and career development. Judith's expertise lies in assigning and editing articles that cater to the needs of modern professionals, providing them with valuable insights and knowledge to stay ahead in their fields.

Love What You Read? Stay Updated!

Join our community for insights, tips, and more.