Error while setting up AAD Sync

Nick Povey 20 Reputation points
2024-10-11T20:52:32.7766667+00:00

While trying to setup Azure Active Directory Connect, I keep getting the following error. "An error occurred executing Configure AAD Sync task: An error occurred while sending the request." Any ideas on what to look for to fix this issue? I have disabled MFA for the Azure Sync account that is created in Entra. I have looked at the logs, but I am not seeing much. I do see the following error in the log.

"Exception Data (Raw): System.Management.Automation.CmdletInvocationException: An error occurred while sending the request. ---> Microsoft.IdentityManagement.PowerShell.ObjectModel.SynchronizationConfigurationValidationException: An error occurred while sending the request.

at Microsoft.DirectoryServices.MetadirectoryServices.UI.WebServices.MMSWebService.ValidateConfigurationParameters(Connector connector)

at Microsoft.DirectoryServices.MetadirectoryServices.UI.WebServices.MMSWebService.CreateConnector(Connector connector, Boolean validate)

at Microsoft.IdentityManagement.PowerShell.Cmdlet.AddADSyncConnectorCmdlet.ProcessRecord()"

Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,114 questions
{count} votes

1 answer

Sort by: Most helpful
  1. akinbade abiola 18,305 Reputation points
    2024-10-13T04:29:28.4433333+00:00

    Thanks for your question.

    This is likely as a result of TLS 1.2 not being selected and used by Connect. Run the script below to enforce this:

    https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/reference-connect-tls-enforcement#powershell-script-to-enable-tls-12

    The above should fix the issue.

    A lesser possibility is if you have a proxy. In that case see: https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/tshoot-connect-connectivity#connectivity-issues-in-the-installation-wizard

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.