Commands › Microsoft Teams

New-CsAutoAttendantPrompt

Microsoft Teams MicrosoftTeams New-*

Create a new prompt.

Quick start script

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

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-CsAutoAttendantPrompt
$before | Format-List

# 3. Make the change
New-CsAutoAttendantPrompt

# 4. Verify and diff
$after = Get-CsAutoAttendantPrompt
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax — 3 parameter sets

AudioFile

New-CsAutoAttendantPrompt -AudioFilePrompt <Object> [-Tenant <Guid>] [<CommonParameters>]

TextToSpeech

New-CsAutoAttendantPrompt -TextToSpeechPrompt <String> [-Tenant <Guid>] [<CommonParameters>]

Dual

New-CsAutoAttendantPrompt -ActiveType <None | TextToSpeech | AudioFile> -AudioFilePrompt <Object> -TextToSpeechPrompt <String> [-Tenant <Guid>] [<CommonParameters>]

Parameters (4)

ParameterTypeRequiredWhat it controls
-ActiveType Object Supported values: None | TextToSpeech | AudioFile
-AudioFilePrompt Object The AudioFilePrompt parameter represents the audio to play when the prompt is activated (rendered).
-Tenant Guid This parameter is reserved for Microsoft internal use only.
-TextToSpeechPrompt String The TextToSpeechPrompt parameter indicates the Text-to-Speech (TTS) prompt that is to be read when the prompt is activated.

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