Error Unable to access the Federation Metadata document from the federation partner

Problem

When I run Hybrid configuration wizard on Exchange 2013, On Federation Trust page, I got below error

PowerShell failed to invoke ‘New-Federation Trust’: Unable to access the Federation Metadata document from the federation partner. Detailed information: “Unable to connect to the remote server”

Capture

How to resolve this issue?

Solution

I checked on Open Log file to check more details about issue. I found this issue happened when try to connect SRVMBX1. To resolve this issue, you need to follow below steps:

  1. Go to server SRVMBX1, open Internet explorer and try to open https://nexus.microsoftonline-p.com/FederationMetadata/2006-12/FederationMetadata.xml
  2. In my case, This mailbox server access internet with proxy and open above URL.
  3. Then Open Command Prompt and run below command to verify that proxy address that exist in internet explorer
  4. netsh winhttp show proxy

    Capture4

  5. In my case, It didn’t show so that i ran this command
  6. netsh winhttp import proxy source=ie

    Capture5

  7. Then you need to open Exchange PowerShell, and ran this command to verify that Exchange see the proxy
  8. Get-ExchangeServer -Identity srvmbx1 | select *proxy*

    Capture6

  9. If it show empty or Value not as exist in internet explorer, you will need to ran this command
  10. Set-ExchangeServer -Identity srvmbx4 -InternetWebProxy http://srvisa.lab.com:80

    Capture7

  11. Then Enable Federation trust should work run successfully.

Note

If you had multiple server for mailbox, you will need to repeat above steps on all Mailbox servers.

 

 

Advertisements
This entry was posted in Office 365. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s