Commands › Microsoft Teams

Import-CsOnlineAudioFile

Microsoft Teams MicrosoftTeams Import-*

Upload a new audio file.

Quick start script

# Import-CsOnlineAudioFile — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId

# 2. Run and inspect
Import-CsOnlineAudioFile -ApplicationId <String> -Content <Byte[]> -FileName <String> | Format-List

# 3. Export for evidence / drift tracking
Import-CsOnlineAudioFile | Export-Clixml .\CsOnlineAudioFile-$(Get-Date -Format yyyyMMdd).xml

Syntax

Import-CsOnlineAudioFile -ApplicationId <String> -FileName <string> -Content <Byte[]> [<CommonParameters>]

Parameters (3)

ParameterTypeRequiredWhat it controls
-ApplicationId String yes The ApplicationId parameter is the identifier for the application which will use this audio file. For example, if the audio file will be used with an Auto Attendant, then it needs to be set to "OrgAutoAttendant". If...
-Content Byte[] yes The Content parameter represents the content of the audio file. Supported formats are WAV (uncompressed, linear PCM with 8/16/32-bit depth in mono or stereo), WMA (mono only), and MP3. The audio file content cannot...
-FileName String yes The FileName parameter is the name of the audio file. For example, the file name for the file C:\Media\Welcome.wav is Welcome.wav.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.