Test-AzureADConnectHealthConnectivity is not recognized

Andreas 1,301 Reputation points
2024-03-06T07:40:19.1566667+00:00

Hi,

We have a hybrid setup with Entra ID connect installed on our Windows Server 2022 domain controller. The sync service is running fine, and i cannot see any issues. Today we got a email notifying us about Health service data is not up to date.

We have check that the services are running, we have rebooted the server.

User's image

I was going to try the Test-AzureADConnectHealthConnectivity, but this command I cannot seem to find. I have imported AzureAD, but still no command. Is there another module I need to import ?

/R

Andreas

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.
19,833 questions
{count} votes

Accepted answer
  1. Timmerman, Michiel 140 Reputation points
    2024-03-06T08:52:15.2666667+00:00

    Seems to be a more global issue as we have it here too. Not much to do about until Microsoft fixes the issue.

    The module is located in C:\Program Files\Microsoft Azure AD Connect Health Agent\Modules, so import it from there to run the command(s).

    Import-Module "C:\Program Files\Microsoft Azure AD Connect Health Agent\Modules\AdHealthConfiguration\AdHealthConfiguration.psd1"

    13 people found this answer helpful.

16 additional answers

Sort by: Most helpful
  1. Martin Svensson 0 Reputation points
    2024-03-06T09:33:22.66+00:00

    Hi

    We have the same issue, an alert was sent out this morning at 04:00 with the message: Health service data is not up to date.

    And now the Health Service is also reporting errors with: Password Hash Synchronization heartbeat was skipped in last 120 minutes.

    0 comments No comments

  2. Lukas 0 Reputation points
    2024-03-06T09:46:37.5366667+00:00

    Same here, Czech Republic + Switzerland.

    0 comments No comments

  3. Kris Vermeulen 0 Reputation points
    2024-03-06T09:52:44.6933333+00:00

    Same here, Belgium

    Test-AzureADConnectHealthConnectivity -Role sync runs just fine

    0 comments No comments

  4. Łukasz Wojtach 0 Reputation points
    2024-03-06T09:54:29.34+00:00

    Hi,

    same here

    after runing:

    Import-Module "C:\Program Files\Microsoft Azure AD Connect Health Agent\Modules\AdHealthConfiguration\AdHealthConfiguration.psd1"

    and

    Test-AzureADConnectHealthConnectivity -Role ADDS

    Get this:

    User's image Problem in MS site