'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.