Migrating to the new Teams Remote PowerShell (using PSsession outside of Teams Module)

Copper Contributor

Following the closure of SFBO Connector on May 17, 2021, trying to adapt our web app to use the new Teams Remote PoweShell endpoint https://api.interfaces.records.teams.microsoft.com/OcsPowershellOAuth/


Remote session has to be established outside of the Teams module, thus using `New-PSSession -ConnectionUri $TeamsURI` cmdlet.


However, after making all necessary changes (that I can think of) in the AAD app and Teams PowerShell endpoint URI - getting same rejection as when trying to connect to the deprecated SFBO endpoint:


New-PSSession : [api.interfaces.records.teams.microsoft.com] Processing data from remote server api.interfaces.records.teams.microsoft.com failed with the following error message: Skype for Business Online PowerShell connections are blocked. Please replace the Skype for Business Online PowerShell connector module with the Teams PowerShell Module


That's strange, considering that I'm not even using the SFBO/Teams Module and that the app scopes & endpoints have been adapted for Teams.


Any suggestions on how to overcome this? Thanks in advance.

0 Replies