Configure application access policy with microsoft teams error exception calling "GetRemoteNewCsOnlineSession"

524 Views Asked by At

Am new to powershell and using this procedure to set application policy with microsoft team The above is necessary when creating online meetings as per this procedure but whenever i run

Grant-CsApplicationAccessPolicy -PolicyName Test-policy -Identity "appid" 

Am getting an error

Exception calling "GetSteppablePipeline" with "1" argument(s): 
"Exception calling "GetRemoteNewCsOnlineSession" with
 "1" argument(s): "Run either Connect-MicrosoftTeams or new-csonlinesession before running cmdlets."

I have already Connected using admin credentials by using

Import-Module MicrosoftTeams
Connect-MicrosoftTeams

I have powershell 5.1 on my device.

What am i missing or how do i resolve the error above.

1

There are 1 best solutions below

2
user15611416 On
  1. Please check which module your using GA or public preview module,if you have installed both,please do uninstall GA and try to set the policy

  2. Update teams module , close and reopen the powershell and try to assign the policy

Reference link

Please do let me know if above steps works for you