Azure cloud shell times out when connecting to exchange online

Ruben Contreras 31 Reputation points
2021-11-11T00:24:46.24+00:00

Does anyone know why my Azure cloud shell session times out when I try to connect to exchange online using the "connect-expossession".

The error is "cloud shell has been idle for 20 minutes or you have manually exited. Would you like to reconnect?

Regardless if I hit reconnect or quit this keeps happening. I've restarted the shell and even tried opening a new shell. This has been happening for about a week now and can't get the shell to connect to exchange online.

TIA

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
635 questions
0 comments No comments
{count} votes

Accepted answer
  1. kobulloc-MSFT 23,341 Reputation points Microsoft Employee
    2021-11-11T01:19:22.74+00:00

    Hello, @Ruben Contreras !

    I'm getting a 20 minute timeout message as soon as I run Connect-EXOPSSession as well. What we should be seeing is something like this. Let me do a bit of investigation on my end to see what may be causing this.

    (Update 1 of 2) For a split second I get the following error prior to the timeout/manual exit message:

    /user/bin/pwsh: symbol lookup error: /opt/microsoft/powershell/7-preview/libmi.so: undefined symbol: SSL_library_init

    148355-image.png

    (Update 2/2) The issue has been resolved and you should no longer encounter this error:

    148694-image.png

    Reference:


5 additional answers

Sort by: Most helpful
  1. Patchfox 3,621 Reputation points
    2021-11-11T12:47:52.32+00:00

    I'm in contact with the M365 Support and this is the last information about the problem:

    After we got off the phone I found that there is a bug surrounding this problem and Azure and Microsoft are currently working on deploying the fix for the issue

    So, I think, we have to wait...

    2 people found this answer helpful.
    0 comments No comments

  2. Papp Károly 106 Reputation points
    2021-11-11T14:30:54.033+00:00

    Meanwhile, you can do it from local PowerShell vith the following settings:

    REQUIREMENTS: PS7 és EXOv2

    1. Install-Module -Name ExchangeOnlineManagement -Scope CurrentUser
    2. Import-Module ExchangeOnlineManagement
    3. Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
    4. Connect-ExchangeOnline -UserPrincipalName admin.username@mathieu.company .onmicrosoft.com
    5. Add-RecipientPermission -Identity helpdesk@mathieu.company .com -Trustee user1@mathieu.company .com -AccessRights SendAs -Confirm:$false
    1 person found this answer helpful.
    0 comments No comments

  3. Ruben Contreras 31 Reputation points
    2021-11-12T16:13:28.17+00:00

    It's working for me now. Thank you very much.

    1 person found this answer helpful.

  4. Papp Károly 106 Reputation points
    2021-11-11T10:50:46.97+00:00

    Same here..
    Time out or error code: /opt/microsoft/powershell/7-preview/pwsh: symbol lookup error: /opt/microsoft/powershell/7-preview/libmi.so: undefined symbol: SSL_library_init

    0 comments No comments