|
| 1 | +--- |
| 2 | +applicable: Microsoft Teams |
| 3 | +author: garciadaniel |
| 4 | +external help file: Microsoft.Teams.ConfigAPI.Cmdlets-help.xml |
| 5 | +Locale: en-US |
| 6 | +manager: roykuntz |
| 7 | +Module Name: MicrosoftTeams |
| 8 | +ms.author: garciadaniel |
| 9 | +ms.reviewer: garciadaniel |
| 10 | +online version: https://learn.microsoft.com/powershell/module/teams/new-csphonenumberusagechangeorder |
| 11 | +schema: 2.0.0 |
| 12 | +title: New-CsPhoneNumberUsageChangeOrder |
| 13 | +--- |
| 14 | + |
| 15 | +# New-CsPhoneNumberUsageChangeOrder |
| 16 | + |
| 17 | +## SYNOPSIS |
| 18 | +This cmdlet creates a request to to update TN Usage (e.g. from User Type to Service Type). |
| 19 | + |
| 20 | +## SYNTAX |
| 21 | + |
| 22 | +``` |
| 23 | +New-CsPhoneNumberUsageChangeOrder -TelephoneNumber <String[]> -Usage <String> |
| 24 | +``` |
| 25 | + |
| 26 | +## DESCRIPTION |
| 27 | +This cmdlet creates a order to update the usage of the given phone numbers (e.g. from User Type to Service Type). |
| 28 | + |
| 29 | +## EXAMPLES |
| 30 | + |
| 31 | +### Example 1 |
| 32 | +```powershell |
| 33 | +PS C:\> New-CsPhoneNumberUsageChangeOrder -TelephoneNumber "+123456789" -Usage ServiceType |
| 34 | +``` |
| 35 | +```output |
| 36 | +cdf3073a-6fbb-4ade-a8af-e8fa1f3b9c13 |
| 37 | +``` |
| 38 | + |
| 39 | +In this example, the telephone number "+123456789" would change to Service Type usage. |
| 40 | + |
| 41 | +### Example 2 |
| 42 | +```powershell |
| 43 | +[string[]]$tns="+14255551234","+14255551233" |
| 44 | +PS C:\> New-CsPhoneNumberUsageChangeOrder -TelephoneNumber $tns -Usage ServiceType |
| 45 | +``` |
| 46 | +```output |
| 47 | +cdf3073a-6fbb-4ade-a8af-e8fa1f3b9c13 |
| 48 | +``` |
| 49 | + |
| 50 | +In this example, the usage of the given list of telephone numbers is being updated to Service Type. |
| 51 | + |
| 52 | +## PARAMETERS |
| 53 | + |
| 54 | +### -TelephoneNumber |
| 55 | +Specifies the telephone number(s) to remove. The format can be with or without the prefixed +, but needs to include country code etc. |
| 56 | + |
| 57 | +```yaml |
| 58 | +Type: System.String[] |
| 59 | +Parameter Sets: (All) |
| 60 | +Aliases: |
| 61 | + |
| 62 | +Required: True |
| 63 | +Position: Named |
| 64 | +Default value: None |
| 65 | +Accept pipeline input: False |
| 66 | +Accept wildcard characters: False |
| 67 | +``` |
| 68 | +
|
| 69 | +### -Usage |
| 70 | +Specifies the new usage type for the given telephone numbers. |
| 71 | +
|
| 72 | +```yaml |
| 73 | +Type: System.Management.Automation.SwitchParameter |
| 74 | +Parameter Sets: (All) |
| 75 | +Aliases: |
| 76 | + |
| 77 | +Required: True |
| 78 | +Position: Named |
| 79 | +Default value: None |
| 80 | +Accept pipeline input: False |
| 81 | +Accept wildcard characters: False |
| 82 | +``` |
| 83 | +
|
| 84 | +## INPUTS |
| 85 | +
|
| 86 | +### None |
| 87 | +
|
| 88 | +## OUTPUTS |
| 89 | +
|
| 90 | +The order id from the request. |
| 91 | +
|
| 92 | +### None |
| 93 | +
|
| 94 | +## NOTES |
| 95 | +This cmdlet is available in Teams PowerShell module 7.5.0 or later. |
| 96 | +
|
| 97 | +## RELATED LINKS |
0 commit comments