Skip to content

Commit 0cd228a

Browse files
committed
Updating syntax and examples for email notifcation during telephone number assignment and unassignment
1 parent 3be3ae5 commit 0cd228a

File tree

3 files changed

+40
-7
lines changed

3 files changed

+40
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ Accept wildcard characters: False
473473
474474
> Applicable: Microsoft Teams
475475
476-
This parameter is reserved for internal Microsoft use.
476+
ID of a network site. A network site represents a location where your organization has a physical venue, such as offices, a set of buildings, or a campus.
477477
478478
```yaml
479479
Type: System.String

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

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ This cmdlet will remove/unassign a phone number from a user or a resource accoun
2020
### RemoveSome (Default)
2121
```
2222
Remove-CsPhoneNumberAssignment -Identity <String> -PhoneNumber <String> -PhoneNumberType <String>
23-
[-HttpPipelinePrepend <SendAsyncStep[]>] [<CommonParameters>]
23+
[-HttpPipelinePrepend <SendAsyncStep[]>] [-Notify] [<CommonParameters>]
2424
```
2525

2626
### RemoveAll
2727
```
2828
Remove-CsPhoneNumberAssignment -Identity <String> [-HttpPipelinePrepend <SendAsyncStep[]>] [-RemoveAll]
29-
[<CommonParameters>]
29+
[-Notify] [<CommonParameters>]
3030
```
3131

3232
## DESCRIPTION
@@ -58,13 +58,13 @@ This example removes/unassigns all the telephone number from [email protected].
5858

5959
### Example 3
6060
```powershell
61-
Remove-CsPhoneNumberAssignment -Identity [email protected] -PhoneNumber +12065551234 -PhoneNumberType CallingPlan
61+
Remove-CsPhoneNumberAssignment -Identity [email protected] -PhoneNumber +12065551234 -PhoneNumberType CallingPlan -Notify
6262
```
6363
This example removes/unassigns the Microsoft Calling Plan phone number +1 (206) 555-1234 from the user [email protected] and also sends an email notification to the user about the removal of telephone number.
6464

6565
### Example 4
6666
```powershell
67-
Remove-CsPhoneNumberAssignment -Identity [email protected] -RemoveAll
67+
Remove-CsPhoneNumberAssignment -Identity [email protected] -RemoveAll -Notify
6868
```
6969
This example removes/unassigns all the telephone number from [email protected] and also sends an email notification to the user about the change.
7070

@@ -146,6 +146,20 @@ Accept pipeline input: False
146146
Accept wildcard characters: False
147147
```
148148
149+
### -Notify
150+
Sends a best-effort email notification when a phone number is removed. Failures to send email are not reported.
151+
152+
```yaml
153+
Type: Switch
154+
Parameter Sets: (RemoveSome, RemoveAll)
155+
Aliases:
156+
157+
Required: False
158+
Default value: None
159+
Accept pipeline input: False
160+
Accept wildcard characters: False
161+
```
162+
149163
### CommonParameters
150164
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
151165

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

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Set-CsPhoneNumberAssignment -PhoneNumber <String> [-HttpPipelinePrepend <SendAsy
3939
```
4040
Set-CsPhoneNumberAssignment -PhoneNumber <String> [-LocationId <String>]
4141
[-HttpPipelinePrepend <SendAsyncStep[]>] -Identity <String> -PhoneNumberType <String>
42-
[-NetworkSiteId <String>] [-AssignmentCategory <String>] [-ReverseNumberLookup <String>] [<CommonParameters>]
42+
[-NetworkSiteId <String>] [-AssignmentCategory <String>] [-ReverseNumberLookup <String>] [-Notify] [<CommonParameters>]
4343
```
4444

4545
### Attribute
@@ -48,8 +48,13 @@ Set-CsPhoneNumberAssignment [-HttpPipelinePrepend <SendAsyncStep[]>] -Identity <
4848
-EnterpriseVoiceEnabled <Boolean> [<CommonParameters>]
4949
```
5050

51+
### Notify
52+
```
53+
Set-CsPhoneNumberAssignment -Identity <string> -PhoneNumber <string> -PhoneNumberType <String> -Notify [<CommonParameters>]
54+
```
55+
5156
## DESCRIPTION
52-
This cmdlet assigns a phone number to a user or resource account. When you assign a phone number the EnterpriseVoiceEnabled flag is automatically set to True.
57+
This cmdlet assigns a telephone number to a user or resource account. When you assign a phone number the EnterpriseVoiceEnabled flag is automatically set to True.
5358

5459
You can also assign a location to a phone number.
5560

@@ -284,6 +289,20 @@ Accept pipeline input: False
284289
Accept wildcard characters: False
285290
```
286291
292+
### -Notify
293+
Sends an email to Teams phone user about new telephone number assignment.
294+
295+
```yaml
296+
Type: Switch
297+
Parameter Sets: (Notify)
298+
Aliases:
299+
300+
Required: False
301+
Default value: None
302+
Accept pipeline input: False
303+
Accept wildcard characters: False
304+
```
305+
287306
### -PhoneNumber
288307
The phone number to assign to the user or resource account. Supports E.164 format like +12065551234 and non-E.164 format like 12065551234. The phone number can't have "tel:" prefixed.
289308

0 commit comments

Comments
 (0)