Memo

Configure an Azure Active Directory

Context

To better understand Azure Active Directory, I decided to create my own tenant and set up an Azure AD lab.

This allowed me to explore Azure AD features, such as user management, synchronization with an on-premise Active Directory, and integration with cloud applications.

This guide details the steps I followed to configure an Azure AD tenant and synchronize an on-premise AD with the cloud.

Creating an Azure Tenant

First, you need to create a Microsoft Azure account, which has a completely free option.

Then, go to the portal https://portal.azure.com to create a new Azure AD "tenant."

Image 1
Image 2
Image 3

Creating my first account in tenant

Once in the new "tenant" on the portal (if not already done), create a new user. This account will be used to synchronize the on-premise AD with the "Azure AD" cloud.

Image 5
Image 6
Image 7

Once the user is created (this will take 1 to 2 minutes), copy the user's UPN. For example: [email protected].

Setting Up Azure AD Connect

For the installation of Azure AD Connect, I simply used the default settings.

Image 8
Image 9
Image 10
Image 11
Image 12
Image 13
Image 14
Image 16
Image 17
Image 18
Image 19
Image 20
Image 21
Image 22
Image 23
Image 24
Image 25
Image 26
Image 27

Azure AD Connect Synchronization Service

Once AAD Connect is configured, launch the "Synchronization Service" software to check the synchronization logs between the on-premise AD and Azure AD.

Image 28

You should see "success" operations there. You can also verify in the Azure portal that the users have been successfully synchronized.

Image 29
Image 30

Creating an account in AD on-premise

After these verifications, you can test creating a new user in the on-premise AD and force synchronization using the command Start-ADSyncSyncCycle -PolicyType Delta.

Image 31
Image 32

Everything works correctly, and we can see the new user!

Image 33

On this page