Commands › Microsoft Teams

New-CsOnlineAudioConferencingRoutingPolicy

Microsoft Teams MicrosoftTeams New-*

This cmdlet creates a Online Audio Conferencing Routing Policy.

Quick start script

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

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

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

Syntax

New-CsOnlineAudioConferencingRoutingPolicy [-Identity] <String> [-Description <String>]
 [-OnlinePstnUsages <Object>] [-RouteType <String>] [-MsftInternalProcessingMode <String>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

Parameters (7)

ParameterTypeRequiredWhat it controls
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.
-Description String Enables administrators to provide explanatory text about the Online Audio Conferencing Routing policy. For example, the Description might indicate the users the policy should be assigned to.
-Identity String yes Identity of the Online Audio Conferencing Routing Policy.
-MsftInternalProcessingMode String For internal use only.
-OnlinePstnUsages Object A list of online PSTN usages (such as Local or Long Distance) that can be applied to this online audio routing policy. The online PSTN usages must be existing usages (PSTN usages can be retrieved by calling the...
-RouteType String For internal use only.
-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.