Set-CsPhoneNumberTag
This cmdlet allows the admin to create and assign a tag to a phone number.
Syntax
Default (Default)
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
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Tag
Indicates the tag to be assigned or created.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.