Skip to content

[AutoPublish] main to live - 04/22 15:33 PDT | 04/23 04:03 IST #12695

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 2 commits into from
Apr 22, 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
58 changes: 58 additions & 0 deletions teams/teams-ps/teams/Get-CsPhoneNumberTag.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
external help file: Microsoft.Teams.ConfigAPI.Cmdlets-help.xml
Module Name: Microsoft.Teams.ConfigAPI.Cmdlets
online version: https://learn.microsoft.com/powershell/module/teams/get-csphonenumbertag
applicable: Microsoft Teams
title: Get-CsPhoneNumberTag
author: pavellatif
ms.author: pavellatif
ms.reviewer: pavellatif
manager: roykuntz
schema: 2.0.0
---

# Get-CsPhoneNumberTag

## SYNOPSIS
This cmdlet allows the admin to get a list of existing tags for telephone numbers.

## SYNTAX

```
Get-CsPhoneNumberTag [<CommonParameters>]
```

## DESCRIPTION
This cmdlet will get a list of all existing tags that are assigned to phone numbers in the tenant.

## EXAMPLES

### Example 1
```powershell
PS C:\> Get-CsPhoneNumberTag
```
```output
TagValue
HR
Redmond HQ
Executives
```

This example shows how to get a list of existing tags for telephone numbers

## PARAMETERS

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

## INPUTS

### None

## OUTPUTS

### Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Models.ISkypeTelephoneNumberMgmtCmdletTenantTagRecord

## NOTES

## RELATED LINKS
82 changes: 82 additions & 0 deletions teams/teams-ps/teams/Remove-CsPhoneNumberTag.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
---
external help file: Microsoft.Teams.ConfigAPI.Cmdlets-help.xml
Module Name: Microsoft.Teams.ConfigAPI.Cmdlets
online version: https://learn.microsoft.com/powershell/module/teams/remove-csphonenumbertag
applicable: Microsoft Teams
title: Remove-CsPhoneNumberTag
author: pavellatif
ms.author: pavellatif
ms.reviewer: pavellatif
manager: roykuntz
schema: 2.0.0
---

# Remove-CsPhoneNumberTag

## SYNOPSIS
This cmdlet allows admin to remove a tag from phone number.

## SYNTAX

```
Remove-CsPhoneNumberTag -Tag <String> [-PhoneNumber <String>] [<CommonParameters>]
```

## DESCRIPTION
This cmdlet allows telephone number administrators to remove existing tags from any telephone numbers. This method does not delete the tag from the system if the tag is assigned to other telephone numbers.

## EXAMPLES

### Example 1
```powershell
PS C:\> Remove-CsPhoneNumberTag -PhoneNumber +123456789 -Tag "HR"
```

This example shows how to remove the tag "HR" from telephone number +123456789.

## PARAMETERS

### -PhoneNumber
Indicates the phone number for the the tag to be removed from

```yaml
Type: String
Parameter Sets: (All)
Aliases:

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

### -Tag
Indicates the tag to be removed.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
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).

## INPUTS

### None

## OUTPUTS

### System.Boolean

## NOTES

## RELATED LINKS
82 changes: 82 additions & 0 deletions teams/teams-ps/teams/Set-CsPhoneNumberTag.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
---
external help file: Microsoft.Teams.ConfigAPI.Cmdlets-help.xml
Module Name: Microsoft.Teams.ConfigAPI.Cmdlets
online version: https://learn.microsoft.com/powershell/module/teams/set-csphonenumbertag
applicable: Microsoft Teams
title: Set-CsPhoneNumberTag
author: pavellatif
ms.author: pavellatif
ms.reviewer: pavellatif
manager: roykuntz
schema: 2.0.0
---

# Set-CsPhoneNumberTag

## SYNOPSIS
This cmdlet allows the admin to create and assign a tag to a phone number.

## SYNTAX

```
Set-CsPhoneNumberTag -PhoneNumber <String> -Tag <String> [<CommonParameters>]
```

## DESCRIPTION
This cmdlet allows telephone number administrators to create and assign tags to phone numbers. Tags can be up to 50 characters long, including spaces, and can contain multiple words. They are not case-sensitive. Each phone number can have up to 50 tags assigned. To improve readability, it is recommended to avoid assigning too many tags to a single phone number. If the desired tag already exist, the telephone number will get assigned the existing tag. If the tag is not already available, a new tag will be created. [Get-CsPhoneNumberTag](https://learn.microsoft.com/powershell/module/teams/get-csphonenumbertag) can be used to check a list of already existing tags. The tags can be used as a filter for [Get-CsPhoneNumberAssignment](https://learn.microsoft.com/powershell/module/teams/get-csphonenumberassignment) to filter on certain list.

## EXAMPLES

### Example 1
```powershell
PS C:\> Set-CsPhoneNumberTag -PhoneNumber +123456789 -Tag "HR"
```
Above example shows how to set a "HR" tag to +123456789 number.

## PARAMETERS

### -PhoneNumber
Indicates the phone number for the the tag to be assigned

```yaml
Type: String
Parameter Sets: (All)
Aliases:

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

### -Tag
Indicates the tag to be assigned or created.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
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).

## INPUTS

### None

## OUTPUTS

### System.Boolean

## NOTES

## RELATED LINKS
82 changes: 82 additions & 0 deletions teams/teams-ps/teams/Update-CsPhoneNumberTag.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
---
external help file: Microsoft.Teams.ConfigAPI.Cmdlets-help.xml
Module Name: Microsoft.Teams.ConfigAPI.Cmdlets
online version: https://learn.microsoft.com/powershell/module/teams/update-csphonenumbertag
applicable: Microsoft Teams
title: Update-CsPhoneNumberTag
author: pavellatif
ms.author: pavellatif
ms.reviewer: pavellatif
manager: roykuntz
schema: 2.0.0
---

# Update-CsPhoneNumberTag

## SYNOPSIS
This cmdlet allows admin to update existing telephone number tags.

## SYNTAX

```
Update-CsPhoneNumberTag -NewTag <String> -Tag <String> [<CommonParameters>]
```

## DESCRIPTION
This cmdlet can be used to update existing tags for telephone numbers. Tags can be up to 50 characters long, including spaces, and can contain multiple words. They are not case-sensitive. An admin can get a list of all existing tags using [Get-CsPhoneNumberTag](https://learn.microsoft.com/powershell/module/teams/get-csphonenumbertag).

## EXAMPLES

### Example 1
```powershell
PS C:\> Update-CsPhoneNumberTag -Tag "Redmond" -NewTag "Redmond HQ"
```

This example shows how to update an existing tag "Redmond" to "Redmond HQ"

## PARAMETERS

### -NewTag
This is the new tag. A tag can be maximum 50 characters long.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

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

### -Tag
This is the old tag which the admin wants to update.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
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).

## INPUTS

### None

## OUTPUTS

### System.Boolean

## NOTES

## RELATED LINKS