Skip to content

Commit c65ad49

Browse files
committed
Update Get-CsPhoneNumberAssignment.md
adding new examples for Assignment Block
1 parent 2494fb1 commit c65ad49

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

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

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,68 @@ AssignmentBlockedUntil :
288288
```
289289
This example shows a way to get filtered results using tags. Tags are not case sensitive.
290290

291+
### Example 14
292+
```powershell
293+
Get-CsPhoneNumberAssignment -TelephoneNumber +14025551234
294+
```
295+
```output
296+
TelephoneNumber : +14025551234
297+
OperatorId : 2b24d246-a9ee-428b-96bc-fb9d9a053c8d
298+
NumberType : CallingPlan
299+
ActivationState : Activated
300+
AssignedPstnTargetId :
301+
AssignmentCategory :
302+
Capability : {UserAssignment}
303+
City : Omaha
304+
CivicAddressId :
305+
IsoCountryCode : US
306+
IsoSubdivision : Nebraska
307+
LocationId :
308+
LocationUpdateSupported : True
309+
NetworkSiteId :
310+
PortInOrderStatus :
311+
PstnAssignmentStatus : Unassigned
312+
PstnPartnerId : 7fc2f2eb-89aa-41d7-93de-73d015d22ff0
313+
PstnPartnerName : Microsoft
314+
NumberSource : Online
315+
ReverseNumberLookup : {}
316+
Tag : {}
317+
AssignmentBlockedState : BlockedForever
318+
AssignmentBlockedUntil :
319+
```
320+
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).
321+
322+
### Example 15
323+
```powershell
324+
Get-CsPhoneNumberAssignment -TelephoneNumber +14025551234
325+
```
326+
```output
327+
TelephoneNumber : +14025551234
328+
OperatorId : 2b24d246-a9ee-428b-96bc-fb9d9a053c8d
329+
NumberType : CallingPlan
330+
ActivationState : Activated
331+
AssignedPstnTargetId :
332+
AssignmentCategory :
333+
Capability : {UserAssignment}
334+
City : Omaha
335+
CivicAddressId :
336+
IsoCountryCode : US
337+
IsoSubdivision : Nebraska
338+
LocationId :
339+
LocationUpdateSupported : True
340+
NetworkSiteId :
341+
PortInOrderStatus :
342+
PstnAssignmentStatus : Unassigned
343+
PstnPartnerId : 7fc2f2eb-89aa-41d7-93de-73d015d22ff0
344+
PstnPartnerName : Microsoft
345+
NumberSource : Online
346+
ReverseNumberLookup : {}
347+
Tag : {}
348+
AssignmentBlockedState : BlockedUntil
349+
AssignmentBlockedUntil : 2025-10-11T21:30:00.0000000Z
350+
```
351+
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).
352+
291353

292354
## PARAMETERS
293355

0 commit comments

Comments
 (0)