Commands › Microsoft Teams

New-CsOnlineTelephoneNumberOrder

Microsoft Teams MicrosoftTeams New-*

Create a telephone number search order. The telephone numbers can then be used to set up calling features for users and services in your organization.

Quick start script

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

# 3. Make the change
New-CsOnlineTelephoneNumberOrder

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

Syntax

New-CsOnlineTelephoneNumberOrder [-Name] <orderName> [-Description] <orderDescription> [-Country] <countryCode> [-NumberType] <numberType> [-Quantity] <quantity> [-CivicAddressId] <civicAddressId> [-NumberPrefix] <numberPrefix> [-AreaCode] <areaCode> [<CommonParameters>]

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