Forum Discussion
Bug - PowerShell Teams Module 2.3.1 - Private SfBPowerShellSessionViaTeamsModule is never closed
- May 20, 2021
Hi Riccardo_Trocca thanks for taking the time. The Uservoice feedback forum is the place to report bugs and make feature requests, and then other users can vote on them and track their progress.
Hi Riccardo_Trocca
We faced exactly the same issue with PowerShell Teams Module 2.3.1 and Azure Function that you described. Did you found out a workaround for this issue? As function execution for different tenants gives error.
Tried manually to remove session by calling Remove-PSSession but this didn't help. Maybe we are doing something wrong
- Riccardo_TroccaJul 23, 2021Copper Contributor
Hi Pavlo770, what I did was to call Remove-PSSession in the way I describe here:
https://swissdev.medium.com/microsoftteams-powershell-module-2-3-1-and-sfb-cmdlets-631c7f6a9664I noticed that under certain conditions Get-PSSession returns null and, of course, in that case we are stuck. We had to redesign our solution to work around this issue, sadly. I tried to report this to Microsoft but they told me that this is "by design". I hope they will fix this stuff soon.