+ CategoryInfo : OperationStopped: (mail.contoso.com:String) , PSRemotingTransportException
+ FullyQualifiedErrorId : JobFailure
+ PSComputerName : mail.contoso.com
- You are using an account that's associated with a mail-enabled user (MEU) in a multi-region environment.
- Connections are routed through a region that differs from the user's region.
Scenario 1: When a script is running long or when automated workflow stopsIn this scenario, you may have to change the script to automatically reconnect if a server is removed from rotation while in progress. You can do this by using the appropriate error handling in the script to catch errors. Then, reconnect and restart processes.
Scenario 2: When you run an administrative cmdlet in RPSIn this scenario, you should rerun the cmdlet. A different back-end server should be contacted, and then the cmdlet should run successfully.
Note In a multi-region Exchange Online deployment, we recommend that you use administrative accounts that are mailbox-enabled. This makes sure that RPS connections are made through the current environment. If the administrative account is associated with an MEU, the connections may be routed through the other region. This behavior may delay the connection or trigger errors.
If either issue continues to occur, escalate it to Microsoft for additional investigation. You can submit a support incident online to Microsoft Online Services Support, or you can contact Microsoft Online Services Support by telephone .
Microsoft may require a Fiddler trace to investigate this issue. If this is required, a support engineer will send a Support Diagnostics Package to securely capture and upload this information. To capture this information in the Fiddler trace, you must add a PowerShell session option with the ProxyAccessType parameter set to IEConfig. For example:
Import-PSSession (New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://mail.contoso.com/powershell -Credential (Get-Credential) -Authentication Basic -AllowRedirection -SessionOption (New-PSSessionOption -ProxyAccessType IEConfig))For more information about how to run Microsoft Support Diagnostic packages, see How to run a Fiddler Trace by using Microsoft Automated Troubleshooting Services .