Skip to content

Commit 45ec01e

Browse files
Merge pull request #13343 from MicrosoftDocs/main
Auto Publish – main to live - 2026-01-26 23:30 UTC
2 parents 2599516 + c936c87 commit 45ec01e

2 files changed

Lines changed: 106 additions & 5 deletions

File tree

teams/teams-ps/MicrosoftTeams/Get-CsOnlineTelephoneNumberOrder.md

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Get-CsOnlineTelephoneNumberOrder -OrderId <String> [-OrderType <String>]
2525

2626
## DESCRIPTION
2727

28-
This `Get-CsOnlineTelephoneNumberOrder` cmdlet can be used to get the status of specific telephone number orders. Currently supported orders for retrievals are: Search [New-CsOnlineTelephoneNumberOrder](https://learn.microsoft.com/powershell/module/microsoftteams/new-csonlinetelephonenumberorder), Direct Routing Number Upload [New-CsOnlineDirectRoutingTelephoneNumberUploadOrder](https://learn.microsoft.com/powershell/module/microsoftteams/new-csonlinedirectroutingtelephonenumberuploadorder), and Direct Routing Number Release [New-CsOnlineTelephoneNumberReleaseOrder](https://learn.microsoft.com/powershell/module/microsoftteams/New-csonlinetelephonenumberreleaseorder). When the OrderType is not indicated, the cmdlet will default to a Search order.
28+
This `Get-CsOnlineTelephoneNumberOrder` cmdlet can be used to get the status of specific telephone number orders. Currently supported orders for retrievals are: Search [New-CsOnlineTelephoneNumberOrder](https://learn.microsoft.com/powershell/module/microsoftteams/new-csonlinetelephonenumberorder), Direct Routing Number Upload [New-CsOnlineDirectRoutingTelephoneNumberUploadOrder](https://learn.microsoft.com/powershell/module/microsoftteams/new-csonlinedirectroutingtelephonenumberuploadorder), Direct Routing Number Release [New-CsOnlineTelephoneNumberReleaseOrder](https://learn.microsoft.com/powershell/module/microsoftteams/New-csonlinetelephonenumberreleaseorder), and SMS Activation/Deactivation. When the OrderType is not indicated, the cmdlet will default to a Search order.
2929

3030
## EXAMPLES
3131

@@ -183,12 +183,34 @@ PS C:\> $results.AdditionalDetails
183183
Key Value
184184
--- -----
185185
TelephoneNumber +100001
186-
Status Error
187-
Message The Number is not found.
186+
Status Error
187+
Message The Number is not found.
188188
```
189189

190190
This example returns the status of a partially successful NumberUpdate order for a telephone number tags.
191191

192+
### Example 7
193+
```powershell
194+
PS C:\> $results = Get-CsOnlineTelephoneNumberOrder -OrderId 0fba1633-81f0-435d-b0a8-81d073cc6f29 -OrderType SmsActivation
195+
196+
Key Value
197+
--- -----
198+
OrderId 0fba1633-81f0-435d-b0a8-81d073cc6f29
199+
Status PendingTelcoCallback
200+
OrderType SmsActivation
201+
CreatedAt 1/6/2026 7:28:09 PM +00:00
202+
CreatedBy UNATTRIBUTED
203+
TelephoneNumbers {System.Collections.Generic.Dictionary`2[System.String,System.Object]}
204+
205+
PS C:\> $results.TelephoneNumbers
206+
207+
Key Value
208+
--- -----
209+
TelephoneNumber +12065555555
210+
```
211+
212+
This example returns the status of an in progress SMS Activation order.
213+
192214
## PARAMETERS
193215

194216
### -OrderId
@@ -207,7 +229,7 @@ Accept wildcard characters: False
207229
```
208230
209231
### -OrderType
210-
Specifies the type of telephone number order to look up. Currently supported values are **Search**, **Release**, and **DirectRoutingNumberCreation**. If this value is unspecified, then it will default to a **Search** order.
232+
Specifies the type of telephone number order to look up. Currently supported values are **Search**, **Release**, **DirectRoutingNumberCreation**, and **SmsActivation/Deactivation**. If this value is unspecified, then it will default to a **Search** order.
211233
212234
```yaml
213235
Type: String
@@ -243,3 +265,4 @@ Updates in Teams PowerShell Module version 6.7.1 and later:
243265
[Clear-CsOnlineTelephoneNumberOrder](https://learn.microsoft.com/powershell/module/microsoftteams/clear-csonlinetelephonenumberorder)
244266
[New-CsOnlineDirectRoutingTelephoneNumberUploadOrder](https://learn.microsoft.com/powershell/module/microsoftteams/new-csonlinedirectroutingtelephonenumberuploadorder)
245267
[New-CsOnlineTelephoneNumberReleaseOrder](https://learn.microsoft.com/powershell/module/microsoftteams/New-csonlinetelephonenumberreleaseorder)
268+

teams/teams-ps/MicrosoftTeams/Get-CsPhoneNumberAssignment.md

Lines changed: 79 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ ReverseNumberLookup : {}
8787
Tag : {}
8888
AssignmentBlockedState :
8989
AssignmentBlockedUntil :
90+
SmsActivationState : NotActivated
9091
```
9192
This example displays information about the Microsoft Calling Plan subscriber phone number +1 (402) 555-1234. You can see that it is assigned to a user.
9293

@@ -118,6 +119,7 @@ ReverseNumberLookup : {}
118119
Tag : {}
119120
AssignmentBlockedState :
120121
AssignmentBlockedUntil :
122+
SmsActivationState : NotActivated
121123
```
122124
This example displays information about the Direct Routing phone number +1 (206) 555-1000;ext=524. You can see that it is assigned to a user.
123125

@@ -192,6 +194,7 @@ ReverseNumberLookup : {SkipInternalVoip}
192194
Tag : {}
193195
AssignmentBlockedState :
194196
AssignmentBlockedUntil :
197+
SmsActivationState : NotActivated
195198
```
196199
This example displays when SkipInternalVoip option is turned on for a number.
197200

@@ -223,6 +226,7 @@ ReverseNumberLookup : {}
223226
Tag : {}
224227
AssignmentBlockedState :
225228
AssignmentBlockedUntil :
229+
SmsActivationState : NotActivated
226230
```
227231
This example shows a way to use -Filter parameter to display information of a specific number.
228232

@@ -254,6 +258,7 @@ ReverseNumberLookup : {}
254258
Tag : {}
255259
AssignmentBlockedState :
256260
AssignmentBlockedUntil :
261+
SmsActivationState : NotActivated
257262
```
258263
This example shows a way to get filtered results using multiple Filter parameters.
259264

@@ -285,6 +290,7 @@ ReverseNumberLookup : {}
285290
Tag : {Engineering}
286291
AssignmentBlockedState :
287292
AssignmentBlockedUntil :
293+
SmsActivationState : NotActivated
288294
```
289295
This example shows a way to get filtered results using tags. Tags are not case sensitive.
290296

@@ -316,6 +322,7 @@ ReverseNumberLookup : {}
316322
Tag : {}
317323
AssignmentBlockedState : BlockedForever
318324
AssignmentBlockedUntil :
325+
SmsActivationState : NotActivated
319326
```
320327
This example displays information about the telephone number +1 (402) 555-1234 which has a permanent assignment block. This block prevents the number from being assigned to any other user. Admin can remove the block using [Remove-CsPhoneNumberAssignmentBlock](./remove-csphonenumberassignmentblock.md).
321328

@@ -347,9 +354,74 @@ ReverseNumberLookup : {}
347354
Tag : {}
348355
AssignmentBlockedState : BlockedUntil
349356
AssignmentBlockedUntil : 2025-10-11T21:30:00.0000000Z
357+
SmsActivationState : NotActivated
350358
```
351359
This example displays information about the telephone number +1 (402) 555-1234 which has a temporary assignment block. This block prevents the number from being assigned to any other user. Once the period shown in AssignmentBlockUntil passes, the AssignmentBlock will be automatically removed and the number will become available to be assigned to any user. Admin can also remove the block manually using [Remove-CsPhoneNumberAssignmentBlock](./remove-csphonenumberassignmentblock.md).
352360

361+
### Example 16
362+
```powershell
363+
Get-CsPhoneNumberAssignment -TelephoneNumber +13603227351
364+
```
365+
```output
366+
TelephoneNumber : +13603227351
367+
OperatorId : 0019adbc-b82a-47b4-a799-4e993a9982f1
368+
NumberType : CallingPlan
369+
ActivationState : Activated
370+
AssignedPstnTargetId : 2d43c5da-649b-406b-9d32-d130d2c53018
371+
AssignmentCategory : Primary
372+
Capability : {Geographic, InboundCalling, OutboundCalling, UserAssignment}
373+
City : Marysville
374+
CivicAddressId : 822d4d26-2c43-460f-921c-179163b106f8
375+
IsoCountryCode : US
376+
IsoSubdivision : Washington
377+
LocationId : 4040949c-2424-469c-a9bc-563a5e5964f3
378+
LocationUpdateSupported : True
379+
NetworkSiteId :
380+
PortInOrderStatus :
381+
PstnAssignmentStatus : UserAssigned
382+
PstnPartnerId : 7fc2f2eb-89aa-41d7-93de-73d015d22ff0
383+
PstnPartnerName : Microsoft
384+
NumberSource : Online
385+
ReverseNumberLookup : {}
386+
Tag : {}
387+
AssignmentBlockedState : NotBlocked
388+
AssignmentBlockedUntil :
389+
SmsActivationState : Activated
390+
```
391+
This example displays information about the telephone number +1 (360) 322-7351 that is enabled for SMS.
392+
393+
### Example 17
394+
```powershell
395+
Get-CsPhoneNumberAssignment -TelephoneNumber +13603227351
396+
```
397+
```output
398+
TelephoneNumber : +13603227351
399+
OperatorId : 0019adbc-b82a-47b4-a799-4e993a9982f1
400+
NumberType : CallingPlan
401+
ActivationState : Activated
402+
AssignedPstnTargetId : 2d43c5da-649b-406b-9d32-d130d2c53018
403+
AssignmentCategory : Primary
404+
Capability : {Geographic, InboundCalling, OutboundCalling, UserAssignment}
405+
City : Marysville
406+
CivicAddressId : 822d4d26-2c43-460f-921c-179163b106f8
407+
IsoCountryCode : US
408+
IsoSubdivision : Washington
409+
LocationId : 4040949c-2424-469c-a9bc-563a5e5964f3
410+
LocationUpdateSupported : True
411+
NetworkSiteId :
412+
PortInOrderStatus :
413+
PstnAssignmentStatus : UserAssigned
414+
PstnPartnerId : 7fc2f2eb-89aa-41d7-93de-73d015d22ff0
415+
PstnPartnerName : Microsoft
416+
NumberSource : Online
417+
ReverseNumberLookup : {}
418+
Tag : {}
419+
AssignmentBlockedState : NotBlocked
420+
AssignmentBlockedUntil :
421+
SmsActivationState : UpdatePending
422+
```
423+
This example displays information about the telephone number +1 (360) 322-7351 where SMS activation is pending.
424+
353425

354426
## PARAMETERS
355427

@@ -785,7 +857,7 @@ The activation state of the telephone number.
785857
The ID of the object the phone number is assigned to, either the ObjectId of a user or resource account or the policy instance ID of a Teams shared calling routing policy instance.
786858
787859
### AssignmentBlockedState
788-
The state of the number in terms of blocked assignment: NotBlocked if there is no assignment block on the number, BlockedForever if assignment is blocked indefinitely for the number, BlockedUntil if assignment is blocked for a specific amount of days.
860+
The state of the number in terms of blocked assignment: NotBlocked if there is no assignment block on the number, BlockedForever if assignment is blocked indefinitely for the number, BlockedUntil if assignment is blocked for a specific amount of days (limited time assignment block currently not available).
789861
790862
### AssignmentBlockedUntil
791863
The date until which assignment is blocked for the phone number. Null if the number is blocked for assignment indefinitely.
@@ -838,6 +910,12 @@ The ID of the PSTN partner providing the phone number.
838910
### PstnPartnerName
839911
The name of the PSTN partner.
840912
913+
### SmsActivationState
914+
The SMS activation state of the number.
915+
916+
### SmsProfileId
917+
The Id of the SMS partner.
918+
841919
### TelephoneNumber
842920
The phone number. The number is always displayed with prefixed "+", even if it was not assigned using prefixed "+".
843921

0 commit comments

Comments
 (0)