In today’s post, I’ll explain how to use the Azure AD or Entra ID Connect Configuration Documenter to compare configurations between two Azure AD Connect servers. This tool is valuable for documenting, troubleshooting, and ensuring configuration consistency in environments that use Azure AD Connect for identity synchronization.
The Azure AD Connect Configuration Documenter is a tool designed to generate comprehensive documentation of an Azure AD Connect sync configuration. This is particularly useful for understanding the sync configuration, monitoring changes after updates, and building confidence when making adjustments to the default settings. Key functionalities of the tool include generating documentation, comparing configurations between different servers, and creating PowerShell deployment scripts to migrate sync rule customizations.
Key Features of Azure AD Connect Configuration Documenter
- Comprehensive Documentation: Generates documentation of the entire Azure AD Connect sync configuration.
- Configuration Comparison: Allows comparisons between two Azure AD Connect sync servers or changes from a defined baseline configuration.
- PowerShell Deployment Scripts: Creates scripts for migrating sync rule customizations or configuration changes from one server to another.
Prerequisites
To run the Azure AD Connect Configuration Documenter, ensure the following:
- .NET Framework 4.5: Required to run the tool.
- Modern Browser: Such as Microsoft Edge to view the generated report.
- Understanding of Sync Engine Concepts: Knowledge of MIIS 2003, ILM 2007, FIM 2010, MIM 2016, or AAD Sync is beneficial for interpreting the report.
Download Link
You can download the latest release of the tool from Azure AD Connect Configuration Documenter on GitHub.
How to Use the Tool
Here’s a guide for different scenarios, including documentation generation, comparison between servers for migration, and tracking in-place upgrades.
Generating a Report for the Current Server Configuration
- Download and extract the latest release from GitHub.
- Run the executable file (
AzureADConnectSyncDocumenter.cmd
) to ensure the tool opens correctly. - Export Configuration:powershellCopy code
Import-Module ADSync Get-ADSyncServerConfiguration -Path "C:\Temp\AADC-SERVER01"
Copy the exported configuration folder (e.g.,AADC-SERVER01
) to the “Data” directory of the tool. - Generate Report: Run the command:cmdCopy code
.\AzureADConnectSyncDocumenter.exe "AADC-SERVER01" "AADC-SERVER01"
The report will be saved in the “Report” folder.
Swing Migration Comparison (Old vs. New Server)
- Export Configurations for both old and new Azure AD Connect servers:
Import-Module "C:\Program Files\Microsoft Azure AD Sync\Bin\ADSync\ADSync.psd1"
Get-ADSyncServerConfiguration -Path "C:\Temp\AADC-SERVER-OLD"
Get-ADSyncServerConfiguration -Path "C:\Temp\AADC-SERVER-NEW"
- Copy Configuration Folders to the Documenter’s “Data” directory.
- Run Comparison:
.\AzureADConnectSyncDocumenter.exe "AADC-SERVER-OLD" "AADC-SERVER-NEW"
- The comparison report will be available in the “Report” folder.
In-Place Upgrade Comparison (Before and After Upgrade)
- Export Server Configurations before and after the upgrade:
Import-Module "C:\Program Files\Microsoft Azure AD Sync\Bin\ADSync\ADSync.psd1"
Get-ADSyncServerConfiguration -Path "C:\Temp\AADC-SERVER-BEFORE"
Get-ADSyncServerConfiguration -Path "C:\Temp\AADC-SERVER-AFTER"
- Run Comparison:
.\AzureADConnectSyncDocumenter.exe "AADC-SERVER-AFTER" "AADC-SERVER-BEFORE"
DEV to PROD Environment Comparison
- Export Configurations for both DEV and PROD environments:powershellCopy code
Import-Module "C:\Program Files\Microsoft Azure AD Sync\Bin\ADSync\ADSync.psd1"
Get-ADSyncServerConfiguration -Path "C:\Temp\AADC-SERVER-DEV"
Get-ADSyncServerConfiguration -Path "C:\Temp\AADC-SERVER-PROD"
- Edit XML Files (if necessary): Ensure connector names match between configurations.
- Generate Comparison Report:cmdCopy code
.\AzureADConnectSyncDocumenter.exe "AADC-SERVER-DEV" "AADC-SERVER-PROD"
Additional Examples and Tips
- Configuration Baseline: For monitoring changes after updates, save an initial baseline configuration to compare future exports.
- Sample Report: Explore a sample report on the tool’s GitHub to better understand the output format.
This tool is invaluable for administrators managing Azure AD Connect, providing a clear view of configurations, modifications, and how synchronization processes function across environments.