Forum Discussion

shocko's avatar
shocko
Steel Contributor
Jun 14, 2024

Azure ADConnect Export of Settings

I'm looking to regulalry export/backup our ADConnect config as we have had an issue in the past with the persistedstate.xml file being corrputed by an AV tool (we alos now back this up). I'm a little confused though on the capabilties here. reading this guide when I export from the UI it exports a single JSON file. This file does not seem to contain all the settings that define my configuration. For example, it does list sync rules but it does not list the attributes I have configured nor the objects select for sync. If I use the Get-ADSyncServerConfiguration CMDLET I get all settings in a set of files/folders including these attributes.

Which one should I be using here? 

  • JakeTheRake's avatar
    JakeTheRake
    Copper Contributor

    shockoUsing the graphical user interface exports JSON file only but it cannot be automated easily. Powershell command saves the entire down-level server configuration directory. Copy this entire directory to a backup location. You must copy the entire Exported-ServerConfiguration-* folder. 

     

    This can be automated by a script and a scheduled task.

     

    Difference is in importing the configuration later. With JSON file you follow this article https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/how-to-connect-import-export-config#import-microsoft-entra-connect-settings

     

    With folder exported you need to reinstall Entra Connect and after accepting the Microsoft Software License Terms, on the next page, select Customize. Then select the Import synchronization settings check box, browse to the copied-over Exported-ServerConfiguration-* folder. Select the MigratedPolicy.json to import the migrated settings.

     

    In both cases configuration will be imported without any issues.

Resources