Skip to content

Commit 18a5655

Browse files
authored
Merge pull request MicrosoftDocs#9096 from JensTrier/UpdateAssignmentCmdlets
Update Set-CsPhoneNumberAssignment cmdlet
2 parents c03870e + e39a8c0 commit 18a5655

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

teams/teams-ps/teams/Set-CsPhoneNumberAssignment.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ customers should continue to use the Set-CsUser, Set-CsOnlineVoiceUser, Set-CsOn
2222

2323
### Assignment (Default)
2424
```powershell
25-
Set-CsPhoneNumberAssignment -Identity <String> -PhoneNumber <String> -PhoneNumberType <String> -LocationId <String> [<CommonParameters>]
25+
Set-CsPhoneNumberAssignment -Identity <String> -PhoneNumber <String> -PhoneNumberType <String> [-LocationId <String>] [<CommonParameters>]
2626
```
2727

2828
### Attribute
@@ -63,9 +63,9 @@ This example sets the EnterpriseVoiceEnabled flag on the user user3@contoso.com.
6363

6464
### Example 4
6565
```powershell
66-
Set-CsPhoneNumberAssignment -Identity user2@contoso.com -LocationId null -PhoneNumber +12065551224 -PhoneNumberType CallingPlan
66+
Set-CsPhoneNumberAssignment -Identity user3@contoso.com -LocationId 'null' -PhoneNumber +12065551226 -PhoneNumberType OperatorConnect
6767
```
68-
This example removes the emergency location from the phone number for user user2@contoso.com.
68+
This example removes the emergency location from the phone number for user user3@contoso.com.
6969

7070
### Example 5
7171
```powershell
@@ -125,8 +125,10 @@ Accept wildcard characters: False
125125
```
126126
127127
### -LocationId
128-
The LocationId of the location to assign to the specific user. You can get it using Get-CsOnlineLisLocation. If you want to remove the location, use
129-
the string value null.
128+
The LocationId of the location to assign to the specific user. You can get it using Get-CsOnlineLisLocation.
129+
130+
Removal of location from a phone number is supported for Direct Routing numbers and Operator Connect numbers that are not managed by the Service Desk.
131+
If you want to remove the location, use the string value null for LocationId.
130132
131133
```yaml
132134
Type: System.String

0 commit comments

Comments
 (0)