You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -34,7 +34,8 @@ This cmdlet removes/unassigns a phone number from a user or resource account. Th
34
34
Unassigning a phone number from a user or resource account will automatically set EnterpriseVoiceEnabled to False.
35
35
36
36
If the cmdlet executes successfully, no result object will be returned. If the cmdlet fails for any reason, a result object will be returned that contains a
37
-
Code string parameter and a Message string parameter with additional details of the failure.
37
+
Code string parameter and a Message string parameter with additional details of the failure. Email notification to end user is a best effort operation. No error message will be displayed if the email fails to send.
38
+
38
39
39
40
**Note**: In Teams PowerShell Module 4.2.1-preview and later we are changing how the cmdlet reports errors. Instead of using a result object, we will be generating an
40
41
exception in case of an error and we will be appending the exception to the $Error automatic variable. The cmdlet will also
@@ -46,13 +47,25 @@ now support the -ErrorAction parameter to control the execution after an error h
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.
This example removes/unassigns all the telephone number from [email protected] and also sends an email notification to the user about the change.
56
69
57
70
## PARAMETERS
58
71
@@ -113,6 +126,20 @@ Accept pipeline input: False
113
126
Accept wildcard characters: False
114
127
```
115
128
129
+
### -Notify
130
+
Sends a best-effort email notification when a phone number is removed. Failures to send email are not reported.
131
+
132
+
```yaml
133
+
Type: Switch
134
+
Parameter Sets: (RemoveSome, RemoveAll)
135
+
Aliases:
136
+
137
+
Required: False
138
+
Default value: None
139
+
Accept pipeline input: False
140
+
Accept wildcard characters: False
141
+
```
142
+
116
143
### CommonParameters
117
144
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
0 commit comments