Commands › Microsoft Teams

Get-CsOnlineTelephoneNumberOrder

Microsoft Teams MicrosoftTeams Get-*

Get the order report of a specific telephone number order.

Quick start script

# Get-CsOnlineTelephoneNumberOrder — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId

# 2. Run and inspect
Get-CsOnlineTelephoneNumberOrder -OrderId <String> | Format-List

# 3. Export for evidence / drift tracking
Get-CsOnlineTelephoneNumberOrder | Export-Clixml .\CsOnlineTelephoneNumberOrder-$(Get-Date -Format yyyyMMdd).xml

Syntax

Get-CsOnlineTelephoneNumberOrder -OrderId <String> [-OrderType <String>]
 [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-OrderId String yes Use the OrderId received as output of your order creation cmdlets.
-OrderType String Specifies the type of telephone number order to look up. Valid values are **Search**, **Release**, **DirectRoutingNumberCreation**, and **SmsActivation**. You can use **SmsActivation** to find orders for both...

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