An error occurred executing Configure AAD Sync task: An error occurred while sending the request.

Voice Labs 25 Reputation points
2024-07-28T14:54:46.67+00:00

Hello,

I have installed the Microsoft Azure AD Connect V2 and trying to perform sync. However, getting error message "An error occurred executing Configure AAD Sync task: An error occurred while sending the request."

On azure i can see the "On-Premises Directory Synchronization Service Account" is getting synchronized but no users have been synced.

Below is the attached error log got from the connect tool. Any help would be greatly appreciated.

[error-logs.txt] (/api/attachments/42368ee1-3f93-4076-93be-c564fb25193e?platform=QnA)

Thanks, Shantanu Dhal

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,579 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,906 questions
{count} votes

Accepted answer
  1. akinbade abiola 17,290 Reputation points
    2024-07-28T21:11:37.33+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

    5 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Aditya Prasher 0 Reputation points
    2024-08-02T10:22:47.9666667+00:00

    This is very common problem. I dont know why this is not mentioned in the installation guide. You need to enable TLS1.2. You can please refer link in above answer to enable it or run the below command and restart the machine

    If (-Not (Test-Path 'HKLM:\SOFTWARE\WOW6432Node\Microsoft.NETFramework\v4.0.30319'))

    {

    New-Item 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319' -Force | Out-Null
    

    }

    New-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432Node\Microsoft.NETFramework\v4.0.30319' -Name 'SystemDefaultTlsVersions' -Value '1' -PropertyType 'DWord' -Force | Out-Null

    New-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432Node\Microsoft.NETFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -PropertyType 'DWord' -Force | Out-Null

    If (-Not (Test-Path 'HKLM:\SOFTWARE\Microsoft.NETFramework\v4.0.30319'))

    {

    New-Item 'HKLM:\SOFTWARE\Microsoft\.NETFramework\v4.0.30319' -Force | Out-Null
    

    }

    New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft.NETFramework\v4.0.30319' -Name 'SystemDefaultTlsVersions' -Value '1' -PropertyType 'DWord' -Force | Out-Null

    New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft.NETFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -PropertyType 'DWord' -Force | Out-Null

    If (-Not (Test-Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server'))

    {

    New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server' -Force | Out-Null
    

    }

    New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server' -Name 'Enabled' -Value '1' -PropertyType 'DWord' -Force | Out-Null

    New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server' -Name 'DisabledByDefault' -Value '0' -PropertyType 'DWord' -Force | Out-Null

    If (-Not (Test-Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client'))

    {

    New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client' -Force | Out-Null
    

    }

    New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client' -Name 'Enabled' -Value '1' -PropertyType 'DWord' -Force | Out-Null

    New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client' -Name 'DisabledByDefault' -Value '0' -PropertyType 'DWord' -Force | Out-Null

    Write-Host 'TLS 1.2 has been enabled. You must restart the Windows Server for the changes to take affect.' -ForegroundColor Cyan

    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.