Skip to content

[AutoPublish] main to live - 08/05 15:34 PDT | 08/06 04:04 IST #12981

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

Merged
merged 5 commits into from
Aug 5, 2025
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ Accept wildcard characters: False

> Applicable: Microsoft Teams

This parameter is reserved for internal Microsoft use.
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.

```yaml
Type: System.String
Expand Down
23 changes: 19 additions & 4 deletions teams/teams-ps/MicrosoftTeams/Remove-CsPhoneNumberAssignment.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ This cmdlet will remove/unassign a phone number from a user or a resource accoun
### RemoveSome (Default)
```
Remove-CsPhoneNumberAssignment -Identity <String> -PhoneNumber <String> -PhoneNumberType <String>
[-HttpPipelinePrepend <SendAsyncStep[]>] [<CommonParameters>]
[-HttpPipelinePrepend <SendAsyncStep[]>] [-Notify] [<CommonParameters>]
```

### RemoveAll
```
Remove-CsPhoneNumberAssignment -Identity <String> [-HttpPipelinePrepend <SendAsyncStep[]>] [-RemoveAll]
[<CommonParameters>]
[-Notify] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -58,13 +58,13 @@ This example removes/unassigns all the telephone number from user2@contoso.com.

### Example 3
```powershell
Remove-CsPhoneNumberAssignment -Identity user1@contoso.com -PhoneNumber +12065551234 -PhoneNumberType CallingPlan
Remove-CsPhoneNumberAssignment -Identity user1@contoso.com -PhoneNumber +12065551234 -PhoneNumberType CallingPlan -Notify
```
This example removes/unassigns the Microsoft Calling Plan phone number +1 (206) 555-1234 from the user user1@contoso.com and also sends an email notification to the user about the removal of telephone number.

### Example 4
```powershell
Remove-CsPhoneNumberAssignment -Identity user2@contoso.com -RemoveAll
Remove-CsPhoneNumberAssignment -Identity user2@contoso.com -RemoveAll -Notify
```
This example removes/unassigns all the telephone number from user2@contoso.com and also sends an email notification to the user about the change.

Expand Down Expand Up @@ -146,6 +146,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -Notify
Sends a best-effort email notification when a phone number is removed. Failures to send email are not reported.

```yaml
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters
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).

Expand Down
19 changes: 17 additions & 2 deletions teams/teams-ps/MicrosoftTeams/Set-CsPhoneNumberAssignment.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Set-CsPhoneNumberAssignment -PhoneNumber <String> [-HttpPipelinePrepend <SendAsy
```
Set-CsPhoneNumberAssignment -PhoneNumber <String> [-LocationId <String>]
[-HttpPipelinePrepend <SendAsyncStep[]>] -Identity <String> -PhoneNumberType <String>
[-NetworkSiteId <String>] [-AssignmentCategory <String>] [-ReverseNumberLookup <String>] [<CommonParameters>]
[-NetworkSiteId <String>] [-AssignmentCategory <String>] [-ReverseNumberLookup <String>] [-Notify] [<CommonParameters>]
```

### Attribute
Expand All @@ -49,7 +49,7 @@ Set-CsPhoneNumberAssignment [-HttpPipelinePrepend <SendAsyncStep[]>] -Identity <
```

## DESCRIPTION
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.
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.

You can also assign a location to a phone number.

Expand Down Expand Up @@ -284,6 +284,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -Notify
Sends an email to Teams phone user about new telephone number assignment.

```yaml
Type: System.Management.Automation.SwitchParameter
Parameter Sets: Assignment
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -PhoneNumber
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.

Expand Down
Loading