Azure/azure-functions-powershell-worker

Powershell module ExchangeOnlineManagement version 3.5.1 issue with azure functions

Sagarthore11 opened this issue · 7 comments

Hello All,

After the ExchangeOnlineManagement PowerShell module was released, we noticed that the latest version, 3.5.1, was released on July 11, 2024. Since then, the Azure Function app PowerShell has been failing with the following error. However, when we reverted back to version 3.5.0, it started working fine.

ERROR: Unable to find type [Microsoft.Exchange.Management.RestApiClient.ExchangeEnvironment].

https://www.powershellgallery.com/packages/ExchangeOnlineManagement/3.5.1

Could you please help us determine if there is a problem with this specific latest version?

https://learn.microsoft.com/en-us/answers/questions/1840897/connect-exchangeonline-in-azure-automation-account

Hello Experts,

Could you pls help us on it?

Thanks

Hello Team,

Any help would be greatly appreciated.

Hello Team, Any help on it pls ?

Hello Everyone,

Could you pls help us on it

Hi @Sagarthore11
A few questions
Is ExchangeOnlineManagement the only external module dependency for your function app or are there others?
Does the issue reproduce with only ExchangeOnlineManagement installed?
Can you provide some repro app (your own or a minimal) that demonstrates this behavior?

Thank you so much @andystaples for your response

image

Thank you so much for your help, @andystaples. I was unable to reproduce the issue again after switching to PowerShell 7.4