Azure / azure-functions-powershell-worker

PowerShell language worker for Azure Functions.
MIT License
206 stars 54 forks source link

Powershell module ExchangeOnlineManagement version 3.5.1 issue with azure functions #1088

Closed Sagarthore11 closed 3 weeks ago

Sagarthore11 commented 3 months ago

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

Sagarthore11 commented 3 months ago

Hello Experts,

Could you pls help us on it?

Thanks

Sagarthore11 commented 3 months ago

Hello Team,

Any help would be greatly appreciated.

Sagarthore11 commented 3 months ago

Hello Team, Any help on it pls ?

Sagarthore11 commented 2 months ago

Hello Everyone,

Could you pls help us on it

andystaples commented 2 months ago

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?

Sagarthore11 commented 2 months ago

Thank you so much @andystaples for your response

image

Sagarthore11 commented 3 weeks ago

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