Exchange Hybrid Configuration Wizard not installing ExchangeOnlineApp-<GUID>

Scott Townsend 15 Reputation points
2025-11-05T17:49:54.0466667+00:00

We had a Cert expire, Windows Updates applied and CU23 Installed.
I reran the HCW, choose the Modern Agent.
It's supposed to create the ExchangeOnlineApp-<GUID> enterprise Application. It is not.
I get the message saying it is going to create it and that it needs consent.

I see in the log it looks for it and sees its not there.

2025.11.05 07:09:42.272 10453 [Client=UX, fn=SendAsync, Thread=19] START GET https://graph.microsoft.com/beta/<GUID>/Applications?$filter=displayName eq 'ExchangeServerApp-<GUID>'

2025.11.05 07:09:42.571 10454 [Client=UX, fn=SendAsync, Thread=19] FINISH Time=299.0ms Results=OK {"@odata.context":"https://graph.microsoft.com/beta/$metadata#applications","value":[]}

I've tried installing the HCW from two different servers. If I issue some Graph calls I can see the 2 servers listed as InActive under the exchangeOnline Connector Type.

When I try and reinstall the HCW I see the 2 servers listed as Inactive.
How can I remove them?

  {  "id": "<GUID>",

            "name": "Default group for Exchange Online",

            "region": "nam",

            "connectorGroupType": "exchangeOnline",

            "isDefault": false,

            "members": [

                {

                    "id": "<GUID>",

                    "machineName": "<Server1>",

                    "externalIp": "<IP1>",

                    "status": "inactive",

                    "version": "1.5.732.0"

                },

                {

                    "id": "<GUID>",

                    "machineName": "<Server2>",

                    "externalIp": "<IP2>",

                    "status": "inactive",

                    "version": "1.5.732.0"

                }

            ]

            }

Exchange | Hybrid management
Exchange | Hybrid management
The administration of a hybrid deployment that connects on-premises Exchange Server with Exchange Online, enabling seamless integration and centralized control.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vergil-V 6,375 Reputation points Microsoft External Staff Moderator
    2025-11-06T03:37:20.3033333+00:00

    Hi @Scott Townsend 
    Thank you for reaching out to Microsoft Learn Q&A!  
    Based on your description, I understand that you encountered an issue where the Hybrid Configuration Wizard (HCW) did not create the ExchangeOnlineApp-<GUID> enterprise application and displayed inactive Hybrid Agent servers. 

    To better understand your situation, could you confirm whether the HCW process with Modern Agent showed the result “Can’t register”? undefined

    If that is the case, you can try one of the following methods to remove the Hybrid Agent application: 

    Option 1: Remove using HybridManagement.psm1 

    1. Retrieve the GUID of the Hybrid Agent application. 
    2. Install Microsoft HybridManagement.psm1 after installing the Microsoft PackageManagement PowerShell module and the Microsoft Azure PowerShell moduleNote: Microsoft is providing this information as a convenience to you. These sites are not controlled by Microsoft, and Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please ensure that you fully understand the risks before using any suggestions from the above link.
    3. Run Import-Module .\HybridManagement.psm1 in the folder that contains the HybridManagement module. 
    4. Run: 
         Remove-HybridApplication -AppId <application GUID> -Credential (Get-Credential)
      
      Replace the GUID you found in step 1. 
    5. Rerun HCW in Classic mode to unregister the Application Proxy service in Microsoft Entra ID. 
    6. Go to Programs and Features in Control Panel and verify that Microsoft Hybrid Service is not installed. 
    7. Rerun HCW in Modern mode.   

    Option 2: Remove using Microsoft Graph 

    1.Run the following PowerShell cmdlets to connect to your tenant:

    Import-Module Microsoft.Graph.Applications 
    Import-Module Microsoft.Graph.Beta.Applications 
    Connect-Graph -Scopes "Application.ReadWrite.All" 
    

    2.Retrieve the application ID 

    Get-MgBetaServicePrincipal | where {$_.Tags -Contains "WindowsAzureActiveDirectoryOnPremApp"}| FL AppId, DisplayName 
    

    3.Remove the hybrid application: 

    Remove-MgApplication -ApplicationId <application GUID> 
    

    Reference: Can't register a Hybrid Agent in Exchange Server - Exchange | Microsoft Learn   

    I hope this provides helpful insight. If you have any updates or additional concerns, please feel free to reply. 


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

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