Error when trying to install Azure AD Connect on WinServer2019

Anonymous
2023-08-17T14:56:19+00:00

Is there anyone who gets the same error as below while installing the Azure AD Connect on a Windows Server 2019?

Is there anyway to resolve this error?

Here below is part of the log file:

............

[ 8] [INFO ] PowerShellHelper.ConnectMsolService: Connecting using an AccessToken. AzureEnvironment=0. [05:39:27.773]

[ 8] [INFO ] PowershellHelper: DirectorySynchronizationEnabled=False [05:39:27.774]

[ 8] [INFO ] PowershellHelper: DirectorySynchronizationStatus=Disabled [05:39:27.774]

[ 8] [INFO ] PowershellHelper: lastDirectorySyncTime=null [05:39:27.774]

[ 8] [INFO ] EnableDirectorySyncTask: Start enable DirSync execute. [05:39:27.775]

[ 8] [INFO ] EnableDirectorySyncTask: Enabling DirSync, because it was disabled. [05:39:28.216]

[ 8] [ERROR] PowershellHelper: Caught exception when enabling Directory Synchronization for Azure. Exception Data (Raw): Microsoft.Online.Deployment.PowerShell.PowerShellInvocationException: An error occurred while executing the 'Set-MsolDirSyncEnabled' command. Unable to complete this action. Try again later. ---> Microsoft.Online.Administration.Automation.MicrosoftOnlineException: Unable to complete this action. Try again later. --- End of inner exception stack trace --- at Microsoft.Online.Deployment.PowerShell.PowerShellHelper.InvokeCommand(IPowerShell powerShell, Command command) at Microsoft.Online.Deployment.Types.Providers.SyncDataProvider.SetMsolDirSyncEnabled(Boolean shouldEnabled, IPowerShell powerShell) Exception Data (Raw): Microsoft.Online.Deployment.PowerShell.PowerShellInvocationException: An error occurred while executing the 'Set-MsolDirSyncEnabled' command. Unable to complete this action. Try again later. ---> Microsoft.Online.Administration.Automation.MicrosoftOnlineException: Unable to complete this action. Try again later. --- End of inner exception stack trace --- at Microsoft.Online.Deployment.PowerShell.PowerShellHelper.InvokeCommand(IPowerShell powerShell, Command command) at Microsoft.Online.Deployment.Types.Providers.SyncDataProvider.SetMsolDirSyncEnabled(Boolean shouldEnabled, IPowerShell powerShell) at Microsoft.Online.Deployment.Types.Providers.SyncDataProvider.EnableDirectorySyncFlag(IAzureActiveDirectoryContext aadContext, IAadSyncContext aadSyncContext) at Microsoft.Online.Deployment.OneADWizard.Runtime.Stages.ConfigureSyncEngineStage.StartADSyncConfigurationCore(Action`1 UpdateProgressText) [05:39:28.218] [ 8] [ERROR] ConfigureSyncEngineStage: Caught exception while enabling directory synchronization flag in cloud. [05:39:28.219] [ 8] [INFO ] ConfigureSyncEngineStage.StartADSyncConfiguration: AADConnectResult.Status=Failed [05:39:28.219]

[ 8] [INFO ] ConfigureSyncEngineStage.StartADSyncConfiguration: Error details: Microsoft.Online.Deployment.PowerShell.PowerShellInvocationException: An error occurred while executing the 'Set-MsolDirSyncEnabled' command. Unable to complete this action. Try again later. ---> Microsoft.Online.Administration.Automation.MicrosoftOnlineException: Unable to complete this action. Try again later. --- End of inner exception stack trace --- at Microsoft.Online.Deployment.PowerShell.PowerShellHelper.InvokeCommand(IPowerShell powerShell, Command command) at Microsoft.Online.Deployment.Types.Providers.SyncDataProvider.SetMsolDirSyncEnabled(Boolean shouldEnabled, IPowerShell powerShell) at Microsoft.Online.Deployment.Types.Providers.SyncDataProvider.EnableDirectorySyncFlag(IAzureActiveDirectoryContext aadContext, IAadSyncContext aadSyncContext) at Microsoft.Online.Deployment.OneADWizard.Runtime.Stages.ConfigureSyncEngineStage.StartADSyncConfigurationCore(Action`1 UpdateProgressText) [05:39:28.219]

[ 8] [ERROR] ExecuteADSyncConfiguration: configuration failed. Skipping export of synchronization policy. resultStatus=Failed [05:39:28.241]

[ 8] [ERROR] PerformConfigurationPageViewModel: An error occurred while executing the 'Set-MsolDirSyncEnabled' command. Unable to complete this action. Try again later. [05:39:28.241]

[ 8] [ERROR] PerformConfigurationPageViewModel: An error occurred while executing the 'Set-MsolDirSyncEnabled' command. Unable to complete this action. Try again later. [05:39:35.777]

[ 1] [INFO ] Opened log file at path C:\ProgramData\AADConnect\trace-20230817-053651.log

Windows for business | Windows Server | User experience | Remote desktop services and terminal services

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

5 additional answers

Sort by: Most helpful
  1. Anonymous
    2023-08-21T01:45:23+00:00

    Hello Hedi Gardi,

    Thank you for posting in Microsoft Community forum.

    Based on the description, I understand your question is related to the Azure AD Connect.

    Since there are no engineers dedicated to Azure AD connect in this forum. in order to be able to get a quick and effective handling of your issue, I recommend that you repost your question in the Q&A forum, where there will be a dedicated engineer to give you a professional and effective reply.

    Here is the link for Q&A forum.
    Questions - Microsoft Q&A

    Click the "Ask a Question" button in the upper right corner to post your question and select "Azure Active Directory" tag.

    Thank you for your understanding and support. If you have any question or concern, please feel free to let us know.

    Have a nice day.

    Best Regards,
    Daisy Zhou

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2023-08-21T06:50:41+00:00

    Hello Daisy,

    Thank you, I will repost my question over the Q&A forum you mentioned.

    0 comments No comments
  3. Anonymous
    2023-08-22T07:55:56+00:00

    Hello Hedi Gardi,

    Greetings!

    You're welcome. I hope your problem can be helped as soon as possible.

    Best Regards,
    Daisy Zhou

    0 comments No comments
  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more