@@ -82,6 +82,7 @@ PstnPartnerId : 7fc2f2eb-89aa-41d7-93de-73d015d22ff0
8282PstnPartnerName : Microsoft
8383NumberSource : Online
8484ReverseNumberLookup : {}
85+ Tag : {}
8586```
8687This 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 :
110111PstnPartnerName :
111112NumberSource : OnPremises
112113ReverseNumberLookup : {}
114+ Tag : {}
113115```
114116This 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
163165TelephoneNumber : +12065551000;ext=524
164- OperatorId : 83d289bc-a4d3-41e6-8a3f-cff260a3f091
166+ OperatorId : 83d289bc-a4d3-41e6-8a3f-cff260a6f091
165167NumberType : DirectRouting
166168ActivationState : Activated
167169AssignedPstnTargetId : 2713551e-ed63-415d-9175-fc4ff825a0be
@@ -180,6 +182,7 @@ PstnPartnerId :
180182PstnPartnerName :
181183NumberSource : OnPremises
182184ReverseNumberLookup : {SkipInternalVoip}
185+ Tag : {}
183186```
184187This example displays when SkipInternalVoip option is turned on for a number.
185188
@@ -208,6 +211,7 @@ PstnPartnerId :
208211PstnPartnerName :
209212NumberSource : OnPremises
210213ReverseNumberLookup : {}
214+ Tag : {}
211215```
212216This 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
219223TelephoneNumber : +12065551000
220- OperatorId : 83d289bc-a4d3-41e6-8a3f-cff260a3f091
224+ OperatorId : 83d289bc-a4d3-41e6-8a3f-cff260a3f591
221225NumberType : DirectRouting
222226ActivationState : Activated
223227AssignedPstnTargetId : 2713551e-ed63-415d-9175-fc4ff825a0be
@@ -236,9 +240,39 @@ PstnPartnerId :
236240PstnPartnerName :
237241NumberSource : OnPremises
238242ReverseNumberLookup : {}
243+ Tag : {}
239244```
240245This 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