|
| 1 | +--- |
| 2 | +applicable: Microsoft Teams |
| 3 | +author: pavellatif |
| 4 | +external help file: Microsoft.Teams.ConfigAPI.Cmdlets-help.xml |
| 5 | +Locale: en-US |
| 6 | +manager: roykuntz |
| 7 | +Module Name: MicrosoftTeams |
| 8 | +ms.author: pavellatif |
| 9 | +ms.reviewer: pavellatif |
| 10 | +online version: https://learn.microsoft.com/powershell/module/teams/new-phonenumberbulkupdatetagsorder |
| 11 | +schema: 2.0.0 |
| 12 | +title: New-CsPhoneNumberBulkUpdateTagsOrder |
| 13 | +--- |
| 14 | + |
| 15 | +# New-CsPhoneNumberBulkUpdateTagsOrder |
| 16 | + |
| 17 | +## SYNOPSIS |
| 18 | + |
| 19 | +This cmdlet allows the admin to add/remove one or multiple telephone number tags to a number of telephone numbers at once. |
| 20 | + |
| 21 | +## SYNTAX |
| 22 | + |
| 23 | +``` |
| 24 | +New-CsPhoneNumberBulkUpdateTagsOrder [-TagsToAdd <string>] [-TagsToRemove <string>] |
| 25 | + [-PhoneNumbers <string>] [<CommonParameters>] |
| 26 | +``` |
| 27 | + |
| 28 | +## DESCRIPTION |
| 29 | + |
| 30 | +Creates a bulk update order that adds or removes one or more tags from multiple telephone numbers in a single operation. This cmdlet is designed for administrators who need to efficiently manage telephone numbers at scale, reducing manual effort and ensuring consistency across large sets of telephone numbers. The cmdlet allows maximum 1000 telephone numbers to be updated at a time. Any limitation for [Set-CsPhoneNumberTag](./Set-CsPhoneNumberTag.md) will also apply to this bulk update order. |
| 31 | + |
| 32 | +## EXAMPLES |
| 33 | + |
| 34 | +### Example 1 |
| 35 | + |
| 36 | +```powershell |
| 37 | +PS C:\> New-CsPhoneNumberBulkUpdateTagsOrder -PhoneNumbers "17032511428,17032511429,17032511430" -TagsToAdd "HR" |
| 38 | +``` |
| 39 | +```output |
| 40 | +Id OrderType |
| 41 | +-- --------- |
| 42 | +0e923e2c-ab0e-6h8c-be5a-a6gh3rf NumberUpdate |
| 43 | +``` |
| 44 | +Above example shows how to set a "HR" and "NewYork" tags to multiple telephone numbers. There can be maximum 1000 telephone numbers in one order. |
| 45 | + |
| 46 | +### Example 2 |
| 47 | + |
| 48 | +```powershell |
| 49 | +PS C:\> New-CsPhoneNumberBulkUpdateTagsOrder -PhoneNumbers "17032511428,17032511429,17032511430" -TagsToRemove "HR" |
| 50 | +``` |
| 51 | +```output |
| 52 | +Id OrderType |
| 53 | +-- --------- |
| 54 | +0e923e2c-ab0e-6h8c-be5a-wre45fd NumberUpdate |
| 55 | +``` |
| 56 | +Above example shows how to remove "HR" tag from multiple telephone numbers. There can be maximum 1000 telephone numbers in one order. |
| 57 | + |
| 58 | +### Example 3 |
| 59 | + |
| 60 | +```powershell |
| 61 | +PS C:\> New-CsPhoneNumberBulkUpdateTagsOrder -PhoneNumbers "17032511428,17032511429,17032511430" -TagsToAdd "DevOps,London,City Center" |
| 62 | +``` |
| 63 | +```output |
| 64 | +Id OrderType |
| 65 | +-- --------- |
| 66 | +0e923e2c-ab0e-6h8c-be5a-90fac6c NumberUpdate |
| 67 | +``` |
| 68 | +Above example shows how to add multiple tags to multiple telephone numbers at the same time. There can be maximum 1000 telephone numbers and 10 tags in one order. Any restrictions on number of tags per number and number of characters per tag will be enforced. |
| 69 | + |
| 70 | +### Example 4 |
| 71 | + |
| 72 | +```powershell |
| 73 | +PS C:\> New-CsPhoneNumberBulkUpdateTagsOrder -PhoneNumbers "17032511428,17032511429,17032511430" -TagsToRemove "DevOps,London,City Center" |
| 74 | +``` |
| 75 | +```output |
| 76 | +Id OrderType |
| 77 | +-- --------- |
| 78 | +0e923e2c-ab0e-6h8c-be5a-906be8c NumberUpdate |
| 79 | +``` |
| 80 | +Above example shows how to remove multiple tags from multiple telephone numbers at the same time. There can be maximum 1000 telephone numbers and 10 tags in one order. |
| 81 | + |
| 82 | +## PARAMETERS |
| 83 | + |
| 84 | +### -TagsToAdd |
| 85 | + |
| 86 | +These are the tags to be added to telephone numbers. |
| 87 | + |
| 88 | +```yaml |
| 89 | +Type: System.String |
| 90 | +Parameter Sets: (All) |
| 91 | +Aliases: |
| 92 | + |
| 93 | +Required: False |
| 94 | +Position: Named |
| 95 | +Default value: None |
| 96 | +Accept pipeline input: False |
| 97 | +Accept wildcard characters: False |
| 98 | +``` |
| 99 | +
|
| 100 | +### -TagsToRemove |
| 101 | +
|
| 102 | +These are the tags to be removed from telephone numbers. |
| 103 | +
|
| 104 | +
|
| 105 | +```yaml |
| 106 | +Type: System.String |
| 107 | +Parameter Sets: (All) |
| 108 | +Aliases: |
| 109 | + |
| 110 | +Required: False |
| 111 | +Position: Named |
| 112 | +Default value: None |
| 113 | +Accept pipeline input: False |
| 114 | +Accept wildcard characters: False |
| 115 | +``` |
| 116 | +
|
| 117 | +### -PhoneNumbers |
| 118 | +
|
| 119 | +These are the list of telephone numbers on which bulk update operation will be performed. |
| 120 | +
|
| 121 | +
|
| 122 | +```yaml |
| 123 | +Type: System.String |
| 124 | +Parameter Sets: (All) |
| 125 | +Aliases: |
| 126 | + |
| 127 | +Required: True |
| 128 | +Position: Named |
| 129 | +Default value: None |
| 130 | +Accept pipeline input: False |
| 131 | +Accept wildcard characters: False |
| 132 | +``` |
| 133 | +
|
| 134 | +
|
| 135 | +### CommonParameters |
| 136 | +
|
| 137 | +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](https://go.microsoft.com/fwlink/?LinkID=113216). |
| 138 | +
|
| 139 | +## INPUTS |
| 140 | +
|
| 141 | +## OUTPUTS |
| 142 | +
|
| 143 | +## NOTES |
| 144 | +
|
| 145 | +The cmdlet is available in Teams PowerShell module 7.7.0 or later. |
| 146 | +
|
| 147 | +## RELATED LINKS |
| 148 | +- [Set-CsPhoneNumberTag](./Set-CsPhoneNumberTag.md) |
| 149 | +- [Get-CsPhoneNumberTag](./Get-CsPhoneNumberTag.md) |
| 150 | +- [Remove-CsPhoneNumberTag](./Remove-CsPhoneNumberTag.md) |
0 commit comments