Azure AD connect installation error at step Connect to Azure AD - Unable to retrieve the Azure Active Directory cinfiguration

Danish Anwar 46 Reputation points
2021-12-10T10:54:02.38+00:00

We are installing new setup with new dedicated SQL server for our azure ad connect server.
No proxy involved.
We are able to connect our SQL but with global admin account of onmicrosoft it is giving error.

156609-image.png

  • No proxy
  • Using Global admin
  • tnc to login.microsoftonline.com is fine
  • Already using latest AD connect version 2.0.28.0

More information - In logs I can see that used GA account is somehow resolving the tenant ID and also verified so means it is able to reach to tenant and resolve name. Still error is same. TLS 1.2 is enabled as per the MS blog already.

Already tested below commands

[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor [System.Net.SecurityProtocolType]::Tls12
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}

And to update Invoke-WebURI for

Invoke-WebRequest -Uri https://adminwebservice.microsoftonline.com/ProvisioningService.svc

Failing with error Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a send.
However TNC to adminwebservice.microsoftonline.com on 443 is True.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alan Kinane 16,951 Reputation points MVP Volunteer Moderator
    2021-12-10T14:33:54.967+00:00

    Do you have SSO enabled or conditional access policies preventing access perhaps?

    https://learn.microsoft.com/en-us/office365/troubleshoot/active-directory/connect-msoservice-throw-exception


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.