Skip to content

Update Get-CsPhoneNumberAssignment.md #12906

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
38 changes: 36 additions & 2 deletions teams/teams-ps/teams/Get-CsPhoneNumberAssignment.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ PstnPartnerId : 7fc2f2eb-89aa-41d7-93de-73d015d22ff0
PstnPartnerName : Microsoft
NumberSource : Online
ReverseNumberLookup : {}
Tag : {}
```
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.

Expand Down Expand Up @@ -110,6 +111,7 @@ PstnPartnerId :
PstnPartnerName :
NumberSource : OnPremises
ReverseNumberLookup : {}
Tag : {}
```
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.

Expand Down Expand Up @@ -161,7 +163,7 @@ Get-CsPhoneNumberAssignment -TelephoneNumber "+12065551000;ext=524"
```
```output
TelephoneNumber : +12065551000;ext=524
OperatorId : 83d289bc-a4d3-41e6-8a3f-cff260a3f091
OperatorId : 83d289bc-a4d3-41e6-8a3f-cff260a6f091
NumberType : DirectRouting
ActivationState : Activated
AssignedPstnTargetId : 2713551e-ed63-415d-9175-fc4ff825a0be
Expand All @@ -180,6 +182,7 @@ PstnPartnerId :
PstnPartnerName :
NumberSource : OnPremises
ReverseNumberLookup : {SkipInternalVoip}
Tag : {}
```
This example displays when SkipInternalVoip option is turned on for a number.

Expand Down Expand Up @@ -208,6 +211,7 @@ PstnPartnerId :
PstnPartnerName :
NumberSource : OnPremises
ReverseNumberLookup : {}
Tag : {}
```
This example shows a way to use -Filter parameter to display information of a specific number.

Expand All @@ -217,7 +221,7 @@ Get-CsPhoneNumberAssignment -Filter "TelephoneNumber -like '+12065551000' -and N
```
```output
TelephoneNumber : +12065551000
OperatorId : 83d289bc-a4d3-41e6-8a3f-cff260a3f091
OperatorId : 83d289bc-a4d3-41e6-8a3f-cff260a3f591
NumberType : DirectRouting
ActivationState : Activated
AssignedPstnTargetId : 2713551e-ed63-415d-9175-fc4ff825a0be
Expand All @@ -236,9 +240,39 @@ PstnPartnerId :
PstnPartnerName :
NumberSource : OnPremises
ReverseNumberLookup : {}
Tag : {}
```
This example shows a way to get filtered results using multiple Filter parameters.

### Example 13
```powershell
Get-CsPhoneNumberAssignment -Filter "Tags -contains ['Engineering']"
```
```output
TelephoneNumber : +12065551102
OperatorId : 83d289bc-a4d3-41e6-8a3f-cff260a3f071
NumberType : DirectRouting
ActivationState : Activated
AssignedPstnTargetId : 2713551e-ed63-415d-9175-fc4ff825a0be
AssignmentCategory : Primary
Capability : {ConferenceAssignment, VoiceApplicationAssignment, UserAssignment}
City :
CivicAddressId : 00000000-0000-0000-0000-000000000000
IsoCountryCode :
IsoSubdivision :
LocationId : 00000000-0000-0000-0000-000000000000
LocationUpdateSupported : True
NetworkSiteId :
PortInOrderStatus :
PstnAssignmentStatus : UserAssigned
PstnPartnerId :
PstnPartnerName :
NumberSource : OnPremises
ReverseNumberLookup : {}
Tag : {Engineering}
```
This example shows a way to get filtered results using tags. Tags are not case sensitive.


## PARAMETERS

Expand Down