Skip to content

Commit 4b07d08

Browse files
authored
Merge pull request #12500 from pavellatif/main
Update New-CsOnlineTelephoneNumberReleaseOrder.md
2 parents ea27ee6 + 006cb42 commit 4b07d08

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

teams/teams-ps/teams/New-CsOnlineTelephoneNumberReleaseOrder.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ This cmdlet creates a request to release Direct Routing telephone numbers from M
1919
## SYNTAX
2020

2121
```
22-
New-CsOnlineTelephoneNumberReleaseOrder [-TelephoneNumber <String>] [-StartingNumber <String>] [-EndingNumber <String>] [<CommonParameters>]
22+
New-CsOnlineTelephoneNumberReleaseOrder [-TelephoneNumber <String>] [-StartingNumber <String>] [-EndingNumber <String>] [-FileContent <Byte[]>] [<CommonParameters>]
2323
```
2424

2525
## DESCRIPTION
26-
This cmdlet releases existing Direct Routing telephone numbers from Microsoft Teams telephone number management inventory. Once released the phone numbers will not be visible in Teams PowerShell as acquired Direct Routing phone numbers.
26+
This cmdlet releases existing Direct Routing telephone numbers from Microsoft Teams telephone number management inventory. Once released the phone numbers will not be visible in Teams PowerShell as acquired Direct Routing phone numbers. A maximum of 1,000 phone numbers can be released at a time. If more than 1,000 numbers need to be released, the requests should be divided into multiple increments of up to 1,000 numbers.
2727

2828
The cmdlet is an asynchronous operation and will return an OrderId as output. You can use the [Get-CsOnlineTelephoneNumberOrder](https://learn.microsoft.com/powershell/module/teams/get-csonlinetelephonenumberorder) cmdlet to check the status of the OrderId, including any error or warning messages that might result from the operation: `Get-CsOnlineTelephoneNumberOrder -OrderType Release -OrderId "orderId"`.
2929

@@ -53,6 +53,15 @@ cdf3073a-6fbb-4ade-a8af-e8fa1f3b9c13
5353

5454
In this example, a range of Direct Routing telephone numbers from "+12000000" to "+12000009" are being released from Microsoft Teams telephone number management. The output of the cmdlet is the OrderId that can be used with the [Get-CsOnlineTelephoneNumberOrder](https://learn.microsoft.com/powershell/module/teams/get-csonlinetelephonenumberorder) cmdlet to retrieve the status of the order: `Get-CsOnlineTelephoneNumberOrder -OrderType Release -OrderId "orderId"`.
5555

56+
### Example 4
57+
```powershell
58+
PS C:\> $drlist = [System.IO.File]::ReadAllBytes("C:\Users\testuser\DrNumber.csv")
59+
PS C:\> New-CsOnlineTelephoneNumberReleaseOrder -FileContent $drlist
60+
cdf3073a-6fbb-4ade-a8af-e8fa1f3b9c13
61+
```
62+
63+
In this example, the content of a file with a list of Direct Routing telephone numbers are being released via file upload. The file should be in Comma Separated Values (CSV) file format and should only contain the list of DR numbers to be released. The New-CsOnlineTelephoneNumberReleaseOrder cmdlet is only used to pass the content. To read the output of this cmdlet and retrieve the status of your order, you can use OrderId with the [Get-CsOnlineTelephoneNumberOrder](./get-csonlinetelephonenumberorder.md) cmdlet : `Get-CsOnlineTelephoneNumberOrder -OrderType Release -OrderId "orderId"`.
64+
5665
## PARAMETERS
5766

5867
### -TelephoneNumber
@@ -100,6 +109,19 @@ Accept pipeline input: False
100109
Accept wildcard characters: False
101110
```
102111
112+
### -FileContent
113+
This is the content of a .csv file that includes the Direct Routing telephone numbers to be released from the Microsoft Teams telephone number management inventory. This parameter can be used to release up to 1,000 numbers at a time.
114+
115+
```yaml
116+
Type: Byte[]
117+
Parameter Sets: (All)
118+
Aliases:
119+
120+
Required: False
121+
Position: Named
122+
Default value: None
123+
Accept pipeline input: False
124+
Accept wildcard characters: False
103125

104126
### CommonParameters
105127
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).

0 commit comments

Comments
 (0)