Commands › Microsoft Teams

New-CsTeamsSharedCallingRoutingPolicy

Microsoft Teams MicrosoftTeams New-*

Configure a shared calling routing policy.

Quick start script

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

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

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

Syntax

New-CsTeamsSharedCallingRoutingPolicy [-Identity] <string> [-EmergencyNumbers <PSListModifier[string]>]
 [-ResourceAccount <string>] [-Description <string>]
 [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters (7)

ParameterTypeRequiredWhat it controls
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.
-Description String The description of the new policy instance.
-EmergencyNumbers PSListModifier[String] An array of phone numbers used as caller ID on emergency calls.
-Force SwitchParameter Suppresses any confirmation prompts that would otherwise be displayed before making changes.
-Identity String yes Unique identifier of the Teams shared calling routing policy to be created.
-ResourceAccount String yes The Identity of the resource account. Can only be specified using the Identity or ObjectId of the resource account.
-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.