Hi Kaktheek,
I don't believe this is an MA issue as I am able to execute Teams specific cmdlets, but not voice related (previous SFBO module) cmdlets. To me it looks that Graph API permissions are missing for the "application" level.
Tried installing latest preview module and getting the same result. Teams cmdlets work, but voice cmdlets don't.
Get-CsOnlineUser returns:
Get-CsOnlineSession : Run Connect-MicrosoftTeams before running cmdlets.
At C:\Program Files\WindowsPowerShell\Modules\MicrosoftTeams\2.2.0\net472\SfBORemotePowershellModule.psm1:57 char:22
- $remoteSession = & (Get-CsOnlineSessionCommand)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (:) [Get-CsOnlineSession], UnauthorizedAccessException
- FullyQualifiedErrorId : UnauthorizedAccessException,Microsoft.Teams.ConfigApi.Cmdlets.GetCsOnlineSession
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.
At C:\Program Files\WindowsPowerShell\Modules\MicrosoftTeams\2.2.0\net472\SfBORemotePowershellModule.psm1:9480 char:38
- ... -Session (Get-PSImplicitRemotingSession -CommandName 'Get-CsOnline ...
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidData: (:) [Invoke-Command], ParentContainsErrorRecordException
- FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand