question

PaoloAragon-7718 avatar image
0 Votes"
PaoloAragon-7718 asked claudioCEN-2457 answered

HCW: Hybrid Agent failing to register - Tenant Mismatch

Our environment has just finished migrating mailbox on a partner tenant to O365. We have removed all the connectors for this tenant and uninstalled the wizard from our Hybrid server.
When it was our turn to install the hybrid agent. We're having failure on installing the hybrid agent. It fails on the part where it's registering the agent.

From our hybrid agent install log file, the main error points to:

FINISH Time=890.1ms Results=BadRequest {
"error": {
"code": "Tenant_NotMatching",
"message": "The requested application does not belong to the requested tenant.",
"innerError": {
"date": "2020-12-21T21:12:43",

We have a consultant working on this already for more than 3 weeks and we can't seem to pinpoint what's going on. We scoured our AD using ADSIedit to remove all the information about the old tenant but it's still getting the same error. Hoping that there's other O365 clients on the same both as us. I see there's a another question already answered about the hybrid agent not registering - I've applied the solution suggested on the answers but still no luck. I

office-exchange-hybrid-itproazure-ad-connectazure-ad-hybrid-identity
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JamesHamil-MSFT avatar image
0 Votes"
JamesHamil-MSFT answered PaoloAragon-7718 commented

Hi @PaoloAragon-7718 , we have an in-depth troubleshooting guide for issues like this. If you've already looked through this I can set you up with a free support ticket. If this doesn't solve your issue please send an email to azcommunity@microsoft.com with subject "Attn: James Hamil" and your azure subscription ID. Please also mark this answer as correct so I can close this thread.

Thank you,
James


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi James,

Thanks for responding. We have went through the troubleshooting guide but this didn't resolve our issue.
We have opened a support ticket with O365 but they seem to be having some issues looking into this as well. I have asked to escalate this issue and has been been escaleted to a team lead.
I'll send you a direct message to the email you've provided. Thanks for reaching out.

0 Votes 0 ·
KyleXu-MSFT avatar image
0 Votes"
KyleXu-MSFT answered KyleXu-MSFT commented

@PaoloAragon-7718

Does there exist hybrid for your Exchange server before?

I would suggest you try to check on the Exchange online, make sure the Organization Sharing with partner tenant has been deleted. Then make sure your local AD is syncing with AAD correctly.

After that, login your Exchange EAC on your Exchange server, download the HCW agent, then follow the wizard to enter account and password. If this error occurs again, could you provide a detailed screenshot to show us at which step this problem occurred?


If the response is helpful, please click "Accept Answer" and upvote it.
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.

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Yes, there's was an existing hybrid connection before on a partner tenant.
Nothing on the Organization Sharing when I checked it. I recall removing that when we finished migrating their mailboxes.

I've pasted a screenshot of the error
50895-image.png


0 Votes 0 ·
image.png (32.0 KiB)

Make sure the HCW is run on your Exchange server. You can also use command below to check connections between your Exchange server and Office 365, make sure there doesnot exist issue with the connection:

 Test-HybridConnectivity -TestO365Endpoints

For more detailed information, you can have a look about this article: Running Setup


0 Votes 0 ·

@PaoloAragon-7718
I am writing here to confirm with you any update about this thread now?
If the above suggestion helps, please be free to mark it as an answer for helping more people.

0 Votes 0 ·
claudioCEN-2457 avatar image
0 Votes"
claudioCEN-2457 answered

@PaoloAragon-7718
Hi there
Could you solve the problem?
Because we have (maybe) the same problem, with the same error message.
MS Support and premium support could not help us until now.
Could you give us a hint for the problem solution?
Best thanks for the help

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.