Linux Pwsh 7.X.X / MS 2.6.0 Import-CsOnlineAudioFile freezes

New Contributor

Since 18-02-2022, the "Import-CsOnlineAudioFile" command with Powershell on Linux and MicrosofTeams Module version 2.6.0 does not work.

It freezes indefinitely after Import-CsOnlineAudioFile. It does work on Windows with the same Powershell and module version (7.2.1 & 2.6.0).

This was tested on different machines and different Microsoft 365 tenants.

Is anyone else experiencing this issue? I contacted the Microsoft support, but they simply stated that Powershell on Linux was not "supported".

Steps to reproduce
Env.:

  • Linux (tested on Centos 7)
  • PowerShell 7.2.1
  • Microsoft Teams module 2.6.0

 

Import-module MicrosoftTeams -RequiredVersion 2.6.0
$password = ConvertTo-SecureString "<password>" -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential("<username>", $password )
Connect-MicrosoftTeams -Credential $cred

$GetContent = Get-Content -Raw  -Path "<path-to-audio-file>" -AsByteStream
$ImportCsOnlineAudioFile = Import-CsOnlineAudioFile -FileName "<filename>" -Content $GetContent -ApplicationId "HuntGroup" -Verbose

 

4 Replies

@felixfafard - Can you please check your PowerShell related issue here: Microsoft PowerShell Community forum.

@ChetanSharma-msft 

 

This appears to be related to the Microsoft Teams module specifically.

 

Something seems to have changed on the backend very recently. For information, I tested with the 3.2.0-preview MicrosoftTeams module today and the Import-CsOnlineAudioFile command works.

 

There is no mention of this in the Microsoft Teams module release notes.

We are checking this internally. We will update you.

@felixfafard - Please confirm whether your issue has resolved or still looking for any help?