Problème configuration 365 Hybrid Configuration

Benjamin GENETELLI 0 Reputation points
2024-12-12T07:53:53.2033333+00:00

Bonjour,

J'ai un projet de migration de serveur Exchange 2010 (à jour dernier SP32) vers Office 365. Je veux passer par une migration hybride complète mais j'ai un problème avec la configuration de l'assistant hybride à la première étape : Approbation de fédération, voici l'erreur que j'obtiens :

PowerShell failed to invoke 'New-FederationTrust': Impossible d'accéder au document des métadonnées de fédération à partir du partenaire de fédération. Informations détaillées : "La connexion sous-jacente a été fermée : Une erreur inattendue s'est produite lors de l'envoi.". {CategoryInfo={Activity=[System.String] New-FederationTrust,Category=[System.Management.Automation.ErrorCategory] MetadataError,Reason=[System.String] FederationMetadataException,TargetName=[System.String] ,TargetType=[System.String] },ErrorDetails=,Exception=[System.Management.Automation.RemoteException] Impossible d'accéder au document des métadonnées de fédération à partir du partenaire de fédération. Informations détaillées : "La connexion sous-jacente a été fermée : Une erreur inattendue s'est produite lors de l'envoi.".,FullyQualifiedErrorId=[System.String] 3E9A6751,Microsoft.Exchange.Management.SystemConfigurationTasks.NewFederationTrust}

2024.12.11 14:53:25.434 10084 [Client=UX, Activity=Enable Federation Trust, Thread=17] PowerShell failed to invoke 'New-FederationTrust': Impossible d'accéder au document des métadonnées de fédération à partir du partenaire de fédération. Informations détaillées : "La connexion sous-jacente a été fermée : Une erreur inattendue s'est produite lors de l'envoi.". {CategoryInfo={Activity=[System.String] New-FederationTrust,Category=[System.Management.Automation.ErrorCategory] MetadataError,Reason=[System.String] FederationMetadataException,TargetName=[System.String] ,TargetType=[System.String] },ErrorDetails=,Exception=[System.Management.Automation.RemoteException] Impossible d'accéder au document des métadonnées de fédération à partir du partenaire de fédération. Informations détaillées : "La connexion sous-jacente a été fermée : Une erreur inattendue s'est produite lors de l'envoi.".,FullyQualifiedErrorId=[System.String] 3E9A6751,Microsoft.Exchange.Management.SystemConfigurationTasks.NewFederationTrust}

J'avoue ne pas savoir quoi faire, quelqu'un saurait m'aiguiller sur ce point ?

En vous remerciant par avance,

Cordialement.

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,365 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
2,175 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Bruce Jing-MSFT 7,175 Reputation points Microsoft Vendor
    2024-12-13T02:50:34.5866667+00:00

    Hi,@Benjamin GENETELLI

    Thanks for posting your question in the Microsoft Q&A forum.

    Cause:

    This can occur if proxy settings are configured incorrectly. For example, this can occur proxy settings do not allow access to the endpoints that are used by Microsoft 365.

    Resolution:

    1. Configure the settings on the proxy server to allow access to the endpoints that are used by the service. For a list of IP addresses and URLs that are used by Microsoft Exchange Online, see the Exchange Online section of Microsoft 365 URLs and IP addresses.
    2. Make sure that proxy settings are configured correctly on the Exchange servers in your environment by doing the following:
      1. Set the proxy in Internet Explorer.
      2. Set the proxy by using the netsh command-line tool. For more information, see Netsh Commands in for Windows Hypertext Transfer Protocol.
      3. Set the proxy by using the cmdlet. For example, run the following command:Set-ExchangeServer

    Set-ExchangeServer NameOfServer -InternetWebProxy Http://proxyURL:Port

    3.Rerun the Hybrid Configuration wizard.

    You can refer to this link for details:https://learn.microsoft.com/en-us/exchange/troubleshoot/hybrid-configuration-wizard-errors/the-underlying-connection-was-closed-error?source=recommendations


    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.

    0 comments No comments

  2. Benjamin GENETELLI 0 Reputation points
    2024-12-17T08:07:23.37+00:00

    Hi

    Sorry for the delay.

    My problem didn't come from a proxy configuration - I didn't have one - but from an incorrect disabling of the TLS1.0 1.1 and SSL2.0 protocols. I rectified this via the registry followed by a server restart and everything was back in order.

    0 comments No comments

  3. Bruce Jing-MSFT 7,175 Reputation points Microsoft Vendor
    2024-12-17T08:17:47.3533333+00:00

    Hi,@Benjamin GENETELLI

    Great to know that the issue has already been resolved and thanks for sharing the solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your solution in case you'd like to "Accept" the answer : )     

    --------------   

    Issue Symptom:  

     Error when running the wizard for hybrid: Unable to access the federation metadata file from the federation partner. Details: “The underlying connection is closed: An unexpected error occurred while sending.

    Resolution: 

    Enabling the TLS1.0 1.1 and SSL2.0 protocols solves the problem.

    0 comments No comments

Your answer

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