Are you running this from the PowerShell ISE? If so, try it from a PowerShell session.
There are a number of posts that report the same problem, but I haven't found any that offer a verified reason for it.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
'New-CsApplicationAccessPolicy -Identity Test-policy -AppIds "xxxxxxxxxxxxxxxx" -Description "description here"'
While running this command getting an error like this.
Get-CsOnlineSession: The remote server returned an error: (404) Not Found.
Invoke-Command: Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is not
null or empty, and then try the command again.
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand.
Why this is happening? We are using Windows PowerShell version 5.1.14393.4467. And imported the latest MicrosoftTeams Powershell Module.
I have followed all the steps in the documentation. Also, the firewall and antivirus are off. But still having the same issue.
Are you running this from the PowerShell ISE? If so, try it from a PowerShell session.
There are a number of posts that report the same problem, but I haven't found any that offer a verified reason for it.
It got fixed. We need to set the user "Teams Administrator" role in https://portal.office.com/AdminPortal/Home#/users And it will take up to 24 hours to work.