Hello, and sorry if posting to wrong thread (I didnt find anything thematically more closer that this)
I am trying to create Azure automation runbook that will assign Teams Video InteropPolicy to members of a particular O365 group. No problem with that actually, but what I am hitting a dead end with is the connection to a proper PS session that would be able to handle CSOnline commands (like get-csonlineuser etc.)
If I configure the session part of the script like this:
$Credential = Get-AutomationPSCredential -Name "AutomationCredentials"Import-Module SkypeOnlineConnector
$Session = New-CsOnlinesSession -Credential $Credential
$ImportedSession = Import-PSSession $Session -AllowClobber:$true | Out-Null
I always end up with:
New-CsOnlineSession : The term 'New-CsOnlineSession' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:3 char:12 + $Session
Do you know how to teach AzureAutomation SFBO cmdlets?
Thank you very much,
Tomas