I am getting this error. How can I configure this? I am setting up a virtual machine to login my AD Account. I want to log my office 365 account and members to access the virtual machine machine. Right now I am configuring the AD account connectivity.
These are errors from logs :
[05:00:31.709] [ 27] [ERROR] ExecuteADSyncConfiguration: configuration failed. Skipping export of synchronization policy. resultStatus=Failed
[05:00:31.710] [ 27] [ERROR] PerformConfigurationPageViewModel: An error occurred while creating the synchronization service account in Azure AD. The error was: Unable to create the synchronization service account for Azure Active Directory. Retrying this operation may help resolve the issue.
[05:00:31.710] [ 27] [ERROR] PerformConfigurationPageViewModel: Unable to create the synchronization service account for Azure Active Directory. Retrying this operation may help resolve the issue.
[05:03:10.957] [ 1] [INFO ] Opened log file at path C:\ProgramData\AADConnect\trace-20221220-041351.log
I tried to reproduce the same in my environment and got the same error like below:
This error occurs, the account authenticates earlier in the session conditional Access is blocking the account you are using as the Azure AD admin account when you are going through the wizard ref:
To resolve this error: Login with admin account -> sing-in logs under monitoring -> check the user sign-in logs and non-interactive log are failure.
Now, when I try to connect azure AD account it configured successfully like below:
Install azure ad connect successfully like below:
Reference:
Azure AD Connect – Unable to Create the Synchronization Service Account for Azure AD – by Sam's Corner
Unable to create the syncronization service account for Azure Active Directory- Microsoft by mfreitas