Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Clear-CsOnlineTelephoneNumberOrder

Use the Clear-CsOnlineTelephoneNumberOrder cmdlet to cancel a specific telephone number search order and release the telephone numbers. The telephone numbers can then be available for search and acquire.

Syntax

Default (Default)

Clear-CsOnlineTelephoneNumberOrder
 [-OrderId] <OrderId>
 [<CommonParameters>]

Description

Use the Clear-CsOnlineTelephoneNumberOrder cmdlet to cancel a specific telephone number search order and release the telephone numbers. The telephone numbers can then be available for search and acquire.

Examples

Example 1

PS C:\> Clear-CsOnlineTelephoneNumberOrder -OrderId 1efd85ca-dd46-41b3-80a0-2e4c5f87c912
PS C:\> Get-CsOnlineTelephoneNumberOrder -OrderId 1efd85ca-dd46-41b3-80a0-2e4c5f87c912

AreaCode :
CivicAddressId :
CountryCode : US
CreatedAt : 8/23/2021 5:43:44 PM
Description : test
ErrorCode : NoError
Id : 1efd85ca-dd46-41b3-80a0-2e4c5f87c912
InventoryType : Subscriber
IsManual : False
Name : test
NumberPrefix : 1718
NumberType : UserSubscriber
Quantity : 1
ReservationExpiryDate : 8/23/2021 5:59:45 PM
SearchType : Prefix
SendToServiceDesk : False
Status : Cancelled
TelephoneNumber : {Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Models.TelephoneNumberSearchResult}

PS C:\> $order.TelephoneNumber

Location TelephoneNumber
-------- ---------------
New York City +17182000004

This example cancels the purchase of the telephone number order containing the phone number +17182000004.

Parameters

-OrderId

Specifies the telephone number search order to look up. Use New-CsOnlineTelephoneNumberOrder to create a search order to obtain a search order Id.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Related Links


Feedback

Was this page helpful?