Skip to content

Commit 92e8a47

Browse files
committed
Update Get-CsPhoneNumberAssignment.md
1 parent 9862b93 commit 92e8a47

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

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

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Returned results are sorted by TelephoneNumber in ascending order.
3333

3434
If you are using both -Skip X and -Top Y for filtering, the returned results will first be skipped by X, and then the top Y results will be returned.
3535

36-
By default, this cmdlet returns a maximum of 500 results. A maximum of 1000 results can be returned using -Top filter. If you need to get more than 1000 results, a combination of -Skip and -Top filtering can be used list an incremental page of 1000 numbers. If a full list of telephone numbers acquired by the tenant is required, you can use [Export-CsAcquiredPhoneNumber](https://learn.microsoft.com/powershell/module/teams/export-csacquiredphonenumber) cmdlet to download a list of all acquired telephone numbers.
36+
By default, this cmdlet returns a maximum of 500 results. A maximum of 1000 results can be returned using -Top filter. If you need to get more than 1000 results, a combination of -Skip and -Top filtering can be used to list an incremental pages of 1000 numbers. If a full list of telephone numbers acquired by the tenant is required, you can use [Export-CsAcquiredPhoneNumber](https://learn.microsoft.com/powershell/module/teams/export-csacquiredphonenumber) cmdlet to download a list of all acquired telephone numbers.
3737

3838
## EXAMPLES
3939

@@ -131,29 +131,23 @@ This example returns the number of Calling Plan subscriber phone numbers that ar
131131

132132
### Example 9
133133
```powershell
134-
(Get-CsPhoneNumberAssignment | Where-Object {!$_.NumberType.Contains('DirectRouting') -and $_.Capability.Contains('VoiceApplicationAssignment') -and $_.Capability.Contains('ConferenceAssignment')}).Count
134+
Get-CsPhoneNumberAssignment -Top (50::500)
135135
```
136-
This example returns the number of Calling Plan or Operator Connect service phone numbers that can be assigned to voice applications and conference bridges.
136+
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.
137137

138138
### Example 10
139139
```powershell
140-
Get-CsPhoneNumberAssignment -Top ([int]::MaxValue)
141-
```
142-
This example returns all phone numbers upto a maximum 1000 results.
143-
144-
### Example 11
145-
```powershell
146140
Get-CsPhoneNumberAssignment -Skip 1000 -Top 1000
147141
```
148-
This example returns all phone numbers between 1001 to 2000 sequence.
142+
This example returns all phone numbers in the record between sequence 1001 to 2000 sequence.
149143

150-
### Example 12
144+
### Example 11
151145
```powershell
152146
Get-CsPhoneNumberAssignment -AssignedPstnTargetId 'TeamsSharedCallingRoutingPolicy|Tag:SC1'
153147
```
154148
This example returns all phone numbers assigned as emergency numbers in the Teams shared calling routing policy instance SC1.
155149

156-
### Example 13
150+
### Example 12
157151
```powershell
158152
Get-CsPhoneNumberAssignment -TelephoneNumber "+12065551000;ext=524"
159153
```
@@ -181,9 +175,9 @@ ReverseNumberLookup : {SkipInternalVoip}
181175
```
182176
This example displays when SkipInternalVoip option is turned on for a number.
183177

184-
### Example 14
178+
### Example 13
185179
```powershell
186-
Get-CsPhoneNumberAssignment -Filter "TelephoneNumber -eq '+12065551000"
180+
Get-CsPhoneNumberAssignment -Filter "TelephoneNumber -eq '+12065551000'"
187181
```
188182
```output
189183
TelephoneNumber : +12065551000
@@ -209,7 +203,7 @@ ReverseNumberLookup : {}
209203
```
210204
This example shows a way to use -Filter parameter to display information of a specific number.
211205

212-
### Example 15
206+
### Example 14
213207
```powershell
214208
Get-CsPhoneNumberAssignment -Filter "TelephoneNumber -like '+12065551000' -and NumberType -eq 'DirectRouting'"
215209
```

0 commit comments

Comments
 (0)