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”?
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
- Retrieve the GUID of the Hybrid Agent application.
- Install Microsoft HybridManagement.psm1 after installing the Microsoft PackageManagement PowerShell module and the Microsoft Azure PowerShell module. Note: 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.
- Run
Import-Module .\HybridManagement.psm1in the folder that contains the HybridManagement module. - Run:
Replace the GUID you found in step 1.Remove-HybridApplication -AppId <application GUID> -Credential (Get-Credential) - Rerun HCW in Classic mode to unregister the Application Proxy service in Microsoft Entra ID.
- Go to Programs and Features in Control Panel and verify that Microsoft Hybrid Service is not installed.
- 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.