Skip to content

Commit f40567a

Browse files
Merge pull request #12906 from pavellatif/main
Update Get-CsPhoneNumberAssignment.md
2 parents 8f1c4ad + b246335 commit f40567a

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

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

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ PstnPartnerId : 7fc2f2eb-89aa-41d7-93de-73d015d22ff0
8282
PstnPartnerName : Microsoft
8383
NumberSource : Online
8484
ReverseNumberLookup : {}
85+
Tag : {}
8586
```
8687
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.
8788

@@ -110,6 +111,7 @@ PstnPartnerId :
110111
PstnPartnerName :
111112
NumberSource : OnPremises
112113
ReverseNumberLookup : {}
114+
Tag : {}
113115
```
114116
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.
115117

@@ -161,7 +163,7 @@ Get-CsPhoneNumberAssignment -TelephoneNumber "+12065551000;ext=524"
161163
```
162164
```output
163165
TelephoneNumber : +12065551000;ext=524
164-
OperatorId : 83d289bc-a4d3-41e6-8a3f-cff260a3f091
166+
OperatorId : 83d289bc-a4d3-41e6-8a3f-cff260a6f091
165167
NumberType : DirectRouting
166168
ActivationState : Activated
167169
AssignedPstnTargetId : 2713551e-ed63-415d-9175-fc4ff825a0be
@@ -180,6 +182,7 @@ PstnPartnerId :
180182
PstnPartnerName :
181183
NumberSource : OnPremises
182184
ReverseNumberLookup : {SkipInternalVoip}
185+
Tag : {}
183186
```
184187
This example displays when SkipInternalVoip option is turned on for a number.
185188

@@ -208,6 +211,7 @@ PstnPartnerId :
208211
PstnPartnerName :
209212
NumberSource : OnPremises
210213
ReverseNumberLookup : {}
214+
Tag : {}
211215
```
212216
This example shows a way to use -Filter parameter to display information of a specific number.
213217

@@ -217,7 +221,7 @@ Get-CsPhoneNumberAssignment -Filter "TelephoneNumber -like '+12065551000' -and N
217221
```
218222
```output
219223
TelephoneNumber : +12065551000
220-
OperatorId : 83d289bc-a4d3-41e6-8a3f-cff260a3f091
224+
OperatorId : 83d289bc-a4d3-41e6-8a3f-cff260a3f591
221225
NumberType : DirectRouting
222226
ActivationState : Activated
223227
AssignedPstnTargetId : 2713551e-ed63-415d-9175-fc4ff825a0be
@@ -236,9 +240,39 @@ PstnPartnerId :
236240
PstnPartnerName :
237241
NumberSource : OnPremises
238242
ReverseNumberLookup : {}
243+
Tag : {}
239244
```
240245
This example shows a way to get filtered results using multiple Filter parameters.
241246

247+
### Example 13
248+
```powershell
249+
Get-CsPhoneNumberAssignment -Filter "Tags -contains ['Engineering']"
250+
```
251+
```output
252+
TelephoneNumber : +12065551102
253+
OperatorId : 83d289bc-a4d3-41e6-8a3f-cff260a3f071
254+
NumberType : DirectRouting
255+
ActivationState : Activated
256+
AssignedPstnTargetId : 2713551e-ed63-415d-9175-fc4ff825a0be
257+
AssignmentCategory : Primary
258+
Capability : {ConferenceAssignment, VoiceApplicationAssignment, UserAssignment}
259+
City :
260+
CivicAddressId : 00000000-0000-0000-0000-000000000000
261+
IsoCountryCode :
262+
IsoSubdivision :
263+
LocationId : 00000000-0000-0000-0000-000000000000
264+
LocationUpdateSupported : True
265+
NetworkSiteId :
266+
PortInOrderStatus :
267+
PstnAssignmentStatus : UserAssigned
268+
PstnPartnerId :
269+
PstnPartnerName :
270+
NumberSource : OnPremises
271+
ReverseNumberLookup : {}
272+
Tag : {Engineering}
273+
```
274+
This example shows a way to get filtered results using tags. Tags are not case sensitive.
275+
242276

243277
## PARAMETERS
244278

0 commit comments

Comments
 (0)