Commands › Microsoft Teams

Set-CsOnlineAudioConferencingRoutingPolicy

Microsoft Teams MicrosoftTeams Set-*

This cmdlet sets the Online Audio Conferencing Routing Policy for users in the tenant.

Quick start script

# Set-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)
Set-CsOnlineAudioConferencingRoutingPolicy  -WhatIf
Set-CsOnlineAudioConferencingRoutingPolicy

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

Syntax

Set-CsOnlineAudioConferencingRoutingPolicy [-Description <String>] [[-Identity] <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 The 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 conferencing routing policy. The online PSTN usages must be existing usages (PSTN usages can be retrieved by...
-RouteType String For internal 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.