Forum Discussion

Cloud_Geek_82's avatar
Cloud_Geek_82
Copper Contributor
Nov 06, 2024

Issue with enabling Azure AD Connect staging mode

Hi All, 

Here is the story. 

There is a Windows Server 2012 with Azure AD Connect version 1.6.16 stopped syncing more than 250 days ago. 

I believe it happened because of Azure AD Connect version 1.XX end of life. 

Azure AD Connect version 2.4.21 was installed in Staging mode on another server. 

However, the situation is the old Azure AD Connect seems not allowed to connect to Azure so I can't put it into Staging via Azure AD Connect tool mode before removing Staging mode on the new server. 

I tried the following PowerShell cmdlets:

$aadSyncSettings=Get-ADSyncGlobalSettings

($aadSyncSettings.parameters | ?{$_.name -eq "Microsoft.Synchronize.StagingMode"}).value="True"

Set-ADSyncGlobalSettings $aadSyncSettings

However, when I run $aadSyncSettings.parameters I still get this output. 

PS C:\Windows\system32> $aadSyncSettings.parameters

Name                   : Microsoft.Synchronize.SynchronizationPolicy
InputType              : String
Scope                  : SynchronizationGlobal
Description            : 
RegexValidationPattern : 
DefaultValue           : 
Value                  : Delta
Extensible             : False
PageNumber             : 0
Intrinsic              : False
DataType               : String

Name                   : Microsoft.SynchronizationOption.JoinCriteria <----- not Microsoft.Synchronize.StagingMode
InputType              : String
Scope                  : SynchronizationGlobal
Description            : 
RegexValidationPattern : 
DefaultValue           : 
Value                  : AlwaysProvision
Extensible             : False
PageNumber             : 0
Intrinsic              : False
DataType               : String

 Could you please advise what are the other options in this case.

 

 

2 Replies

  • kyazaferr's avatar
    kyazaferr
    Steel Contributor

    Verify Azure AD Connect Installation and Connectivity

    Before troubleshooting further, ensure the following:

    • Azure AD Connect Version: Ensure that the version 2.4.21 of Azure AD Connect is installed and running correctly on the staging server.
    • Network Connectivity: Confirm that the server with the new Azure AD Connect installation has network access to Azure AD and that the Microsoft Online Services Sign-In Assistant is installed and functional.

    2. Staging Mode Configuration Check

    The PowerShell cmdlet you tried seems to be missing the Microsoft.Synchronize.StagingMode parameter. If that’s the case, it suggests that you may be looking at incorrect or incomplete global settings. Here's how to correctly enable staging mode:

    Check Existing Staging Mode Configuration:

    You can use the following cmdlet to verify if staging mode is enabled on the current server:

     

    Get-ADSyncGlobalSettings

    • kyazaferr's avatar
      kyazaferr
      Steel Contributor

      To fix your issue:

      • Ensure Azure AD Connect 2.4.21 is correctly installed on the new server.
      • Enable staging mode properly through PowerShell or the Azure AD Connect Wizard.
      • If the old server cannot be connected, remove it manually using PowerShell or clean up the old instance completely and then configure the new staging mode server.

Resources