Commands › Microsoft Teams

New-CsTeamsCallHoldPolicy

Microsoft Teams MicrosoftTeams New-*

Creates a new Teams call hold policy in your tenant. The Teams call hold policy is used to customize the call hold experience for Teams clients.

Quick start script

# New-CsTeamsCallHoldPolicy — 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-CsTeamsCallHoldPolicy
$before | Format-List

# 3. Make the change (dry run first)
New-CsTeamsCallHoldPolicy -Identity <String> -WhatIf
New-CsTeamsCallHoldPolicy -Identity <String>

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

Syntax

New-CsTeamsCallHoldPolicy [-Identity] <string> [-Description <string>] [-AudioFileId <string>] [-StreamingSourceUrl <string>] [-StreamingSourceAuthType <string>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters (8)

ParameterTypeRequiredWhat it controls
-AudioFileId String A string representing the ID referencing an audio file uploaded via the Import-CsOnlineAudioFile cmdlet.
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.
-Description String Enables administrators to provide explanatory text to accompany a Teams call hold policy.
-Force SwitchParameter Suppresses the display of any non-fatal error message that might arise when running the command.
-Identity String yes Unique identifier to be assigned to the new Teams call hold policy.
-StreamingSourceAuthType String This parameter is reserved for internal Microsoft use.
-StreamingSourceUrl String This parameter is reserved for internal Microsoft use.
-WhatIf SwitchParameter Shows what would happen if the cmdlet runs. The cmdlet is not run.

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