Error when trying to install Azure AD Connect

Hedi Gardi 46 Reputation points
2023-08-21T07:32:41.88+00:00

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

Is there anyway to resolve this error?

error azure ad connect

The log file:

trace-20230822-053733.log

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

Accepted answer
  1. patrickmeeuwis 325 Reputation points
    2023-08-23T07:54:29.17+00:00

    @Hedi Gardi It looks like their is something going wrong with the status of the verification of your domains in your tenant. Could you please post the output of the following commands;

    $credentials=Get-Credential
    Connect-MsolService -Credential $credentials
    Get-MsolDomain

    If you have a unverified domain I would suggest to remove that domain by the following command;

    Remove-MsDolDomain

    Then run the following command;

    Set-MsolDirSyncEnabled -EnableDirSync $True

    After that, you could check the status of your domains again by running the following command;

    Get-MsolDomain

    Please let me know.

    1 person found this answer helpful.

4 additional answers

Sort by: Most helpful
  1. Andy David - MVP 145.1K Reputation points MVP
    2023-08-21T13:41:59.3233333+00:00

    Sounds like its time to open a support case with Azure. Wonder if those commands are deprecated.

    1 person found this answer helpful.

  2. Hedi Gardi 46 Reputation points
    2023-08-23T11:14:11.0366667+00:00

    @patrickmeeuwis There might have been a previous issue that caused this functionality to stop working. However, it seems that the problem has now been resolved, as the PowerShell command "Set-MsolDirSyncEnabled -EnableDirSync $True" executed successfully and the initial error has disappeared.

    msoldomain2

    1 person found this answer helpful.
    0 comments No comments

  3. patrickmeeuwis 325 Reputation points
    2023-08-21T09:06:07.7566667+00:00

    Hi Hedi, can you add the log as mentioned in the printscreen? Which Azure-permissions does your account have which you entered during the setup of AAD Connect?


  4. Kashif Imran 0 Reputation points
    2023-08-28T19:51:15.15+00:00

    Hi,

    I faced the same issue while setting up test tenant and didn't found anything on internet that help me out. In my case I found a lead when I tried to setup another test tenant: User's image

    Microsoft actually updated commands for AD sync. Please run Update-MgOrganization with your Tenant id and then run ADsync, it will work. You will need to install module Microsoft.Graph.Identity.DirectoryManagement first to run Update-MgOrganization.

    You can go through following links for more details.

    https://techcommunity.microsoft.com/t5/microsoft-entra-azure-ad-blog/migrate-your-apps-to-access-the-license-managements-apis-from/ba-p/2464366

    And here is the list of commands that has been updated: https://learn.microsoft.com/en-us/powershell/microsoftgraph/azuread-msoline-cmdlet-map?view=graph-powershell-1.0#directory

    0 comments No comments