Set-CsPhoneNumberTag
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 can be used to check a list of already existing tags. The tags can be used as a filter for Get-CsPhoneNumberAssignment to filter on certain list.
Examples
Example 1
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
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Tag
Indicates the tag to be assigned or created.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
System.Boolean