Skip to content

Commit 62ac7d9

Browse files
authored
Merge pull request MicrosoftDocs#8579 from JensTrier/PhoneNumber2
PhoneNumberAssignment and TeamsUnassignedNumberTreatment changes
2 parents 9cbdd34 + 543b90c commit 62ac7d9

6 files changed

+32
-24
lines changed

teams/teams-ps/teams/Get-CsTeamsUnassignedNumberTreatment.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ schema: 2.0.0
1515
## SYNOPSIS
1616
Displays a specific or all treatments for how calls to an unassigned number range should be routed.
1717

18-
> [!NOTE]
19-
> **Preview** The use of this cmdlet is in Public Preview.
2018

2119
## SYNTAX
2220

teams/teams-ps/teams/New-CsTeamsUnassignedNumberTreatment.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ schema: 2.0.0
1515
## SYNOPSIS
1616
Creates a new treatment for how calls to an unassigned number range should be routed. The call can be routed to a user, an application or to an announcement service where a custom message will be played to the caller.
1717

18-
19-
> [!NOTE]
20-
> **Preview** The use of this cmdlet is in Public Preview.
2118

2219
## SYNTAX
2320

teams/teams-ps/teams/Remove-CsPhoneNumberAssignment.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,14 @@ This cmdlet will remove/unassign a phone number from a user or a resource accoun
2020
2121
## SYNTAX
2222

23+
### RemoveSome (Default)
2324
```powershell
24-
Remove-CsPhoneNumberAssignment [[-Identity] <String> [-PhoneNumber <String>] [-PhoneNumberType <String>] [-RemoveAll] [<CommonParameters>]
25+
Remove-CsPhoneNumberAssignment -Identity <String> -PhoneNumber <String> -PhoneNumberType <String> [<CommonParameters>]
26+
```
2527

28+
### RemoveAll
29+
```powershell
30+
Remove-CsPhoneNumberAssignment -Identity <String> -RemoveAll [<CommonParameters>]
2631
```
2732

2833
## DESCRIPTION
@@ -66,7 +71,7 @@ The phone number to unnassign from the user or resource account. Supports E.164
6671
6772
```yaml
6873
Type: System.String
69-
Parameter Sets: (All)
74+
Parameter Sets: (RemoveSome)
7075
Aliases:
7176

7277
Required: False
@@ -80,7 +85,7 @@ The type of phone number to unassign from the user or resource account. The supp
8085
8186
```yaml
8287
Type: System.String
83-
Parameter Sets: (All)
88+
Parameter Sets: (RemoveSome)
8489
Aliases:
8590

8691
Required: False
@@ -94,7 +99,7 @@ Unassigns the phone number from the user or resource account.
9499
95100
```yaml
96101
Type: Switch
97-
Parameter Sets: (All)
102+
Parameter Sets: (RemoveAll)
98103
Aliases:
99104

100105
Required: False

teams/teams-ps/teams/Remove-CsTeamsUnassignedNumberTreatment.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ schema: 2.0.0
1515
## SYNOPSIS
1616
Removes a treatment for how calls to an unassigned number range should be routed.
1717

18-
> [!NOTE]
19-
> **Preview** The use of this cmdlet is in Public Preview.
20-
18+
2119
## SYNTAX
2220

2321
```powershell

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

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,14 @@ This cmdlet will assign a phone number to a user or a resource account (online a
2020
2121
## SYNTAX
2222

23+
### Assignment (Default)
2324
```powershell
24-
Set-CsPhoneNumberAssignment [[-Identity] <String> [-PhoneNumber <String>] [-PhoneNumberType <String>] [-LocationId <String>] [-EnterpriseVoiceEnabled <Boolean>][<CommonParameters>]
25-
25+
Set-CsPhoneNumberAssignment -Identity <String> -PhoneNumber <String> -PhoneNumberType <String> -LocationId <String> [<CommonParameters>]
26+
```
27+
28+
### Attribute
29+
```powershell
30+
Set-CsPhoneNumberAssignment -Identity <String> -EnterpriseVoice <Boolean> [<CommonParameters>]
2631
```
2732

2833
## DESCRIPTION
@@ -48,7 +53,13 @@ to the user [email protected].
4853
```powershell
4954
Set-CsPhoneNumberAssignment -Identity [email protected] -EnterpriseVoiceEnabled $true
5055
```
51-
This example sets the EnterpriseVoiceEnabled flag on the user [email protected].
56+
This example sets the EnterpriseVoiceEnabled flag on the user [email protected].
57+
58+
### Example 4
59+
```powershell
60+
Set-CsPhoneNumberAssignment -Identity [email protected] -LocationId null -PhoneNumber +12065551224 -PhoneNumberType CallingPlan
61+
```
62+
This example removes the emergency ___location from the phone number for user [email protected].
5263

5364

5465
## PARAMETERS
@@ -60,7 +71,7 @@ This parameter is mutual exclusive with PhoneNumber.
6071

6172
```yaml
6273
Type: System.Boolean
63-
Parameter Sets: (All)
74+
Parameter Sets: (Attribute)
6475
Aliases:
6576
Applicable: Microsoft Teams
6677

@@ -85,11 +96,12 @@ Accept wildcard characters: False
8596
```
8697
8798
### -LocationId
88-
The Id of the ___location to assign to the specific user. You can get it using Get-CsOnlineLisLocation
99+
The Id of the ___location to assign to the specific user. You can get it using Get-CsOnlineLisLocation. If you want to remove the ___location, use
100+
the string value null.
89101
90102
```yaml
91103
Type: System.String
92-
Parameter Sets: (All)
104+
Parameter Sets: (Assignment)
93105
Aliases:
94106

95107
Required: False
@@ -99,14 +111,14 @@ Accept wildcard characters: False
99111
```
100112
101113
### -PhoneNumber
102-
The phone number to assign to the user or resource account. Supports E.164 format like +12065551234 and non-E.164 format like 12065551234. We are not currently supporting
103-
Direct Routing numbers with extensions, but you can use the Set-CsUser cmdlet for this.
114+
The phone number to assign to the user or resource account. Supports E.164 format like +12065551234 and non-E.164 format like 12065551234. We are also supporting
115+
Direct Routing numbers with extensions using the formats +1206555000;ext=1234 or 1206555000;ext=1234
104116
105117
Setting a phone number will automatically set EnterpriseVoiceEnabled to True.
106118
107119
```yaml
108120
Type: System.String
109-
Parameter Sets: (All)
121+
Parameter Sets: (Assignment)
110122
Aliases:
111123

112124
Required: False
@@ -120,7 +132,7 @@ The type of phone number to assign to the user or resource account. The supporte
120132
121133
```yaml
122134
Type: System.String
123-
Parameter Sets: (All)
135+
Parameter Sets: (Assignment)
124136
Aliases:
125137

126138
Required: False

teams/teams-ps/teams/Set-CsTeamsUnassignedNumberTreatment.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ schema: 2.0.0
1515
## SYNOPSIS
1616
Changes a treatment for how calls to an unassigned number range should be routed. The call can be routed to a user, an application or to an announcement service where a custom message will be played to the caller.
1717

18-
> [!NOTE]
19-
> **Preview** The use of this cmdlet is in Public Preview.
2018

2119
## SYNTAX
2220

0 commit comments

Comments
 (0)