Skip to content

Update Get-CsPhoneNumberAssignment.md #12618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 4 additions & 16 deletions teams/teams-ps/teams/Get-CsPhoneNumberAssignment.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,29 +126,17 @@ This example returns information about all phone numbers that contain the digits

### Example 8
```powershell
(Get-CsPhoneNumberAssignment | Where-Object {$_.NumberType.Contains('CallingPlan') -and $_.Capability.Contains('UserAssignment') -and ($_.PstnAssignmentStatus.Contains('UserAssigned') -or $_.PstnAssignmentStatus.Contains('Unassigned'))}).Count
```
This example returns the number of Calling Plan subscriber phone numbers that are either assigned or not assigned to users.

### Example 9
```powershell
Get-CsPhoneNumberAssignment -Top (50::500)
```
This example returns all phone numbers in the record between sequence 50 to 500. This parameter can be used to get upto a maximum 1000 results at a time.

### Example 10
```powershell
Get-CsPhoneNumberAssignment -Skip 1000 -Top 1000
```
This example returns all phone numbers sequenced between 1001 to 2000 in the record of phone numbers.

### Example 11
### Example 9
```powershell
Get-CsPhoneNumberAssignment -AssignedPstnTargetId 'TeamsSharedCallingRoutingPolicy|Tag:SC1'
```
This example returns all phone numbers assigned as emergency numbers in the Teams shared calling routing policy instance SC1.

### Example 12
### Example 10
```powershell
Get-CsPhoneNumberAssignment -TelephoneNumber "+12065551000;ext=524"
```
Expand Down Expand Up @@ -176,7 +164,7 @@ ReverseNumberLookup : {SkipInternalVoip}
```
This example displays when SkipInternalVoip option is turned on for a number.

### Example 13
### Example 11
```powershell
Get-CsPhoneNumberAssignment -Filter "TelephoneNumber -eq '+12065551000'"
```
Expand Down Expand Up @@ -204,7 +192,7 @@ ReverseNumberLookup : {}
```
This example shows a way to use -Filter parameter to display information of a specific number.

### Example 14
### Example 12
```powershell
Get-CsPhoneNumberAssignment -Filter "TelephoneNumber -like '+12065551000' -and NumberType -eq 'DirectRouting'"
```
Expand Down