Commands › Microsoft Teams

New-CsPhoneNumberUsageChangeOrder

Microsoft Teams MicrosoftTeams New-*

Creates an order to change the usage type of one or more telephone numbers.

Quick start script

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

# 3. Make the change
New-CsPhoneNumberUsageChangeOrder -TelephoneNumber <String[]> -Usage <SwitchParameter>

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

Syntax

New-CsPhoneNumberUsageChangeOrder -TelephoneNumber <String[]> -Usage <String> [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-TelephoneNumber String[] yes Specifies the telephone numbers whose usage type to change. Include the country code. The leading `+` is optional, for example, "+12065550100" or "12065550100". To update multiple numbers in one order, pass an array...
-Usage SwitchParameter yes Specifies the new usage type for the telephone numbers. For example, specify `ServiceType` to request Service Type usage.

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