Skip to content

Publish main to live, Tuesday 3:30PM PDT, 09/03 #12097

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 20 additions & 5 deletions teams/teams-ps/teams/Export-CsAcquiredPhoneNumber.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,36 @@ By default, this cmdlet returns all the phone numbers acquired by the tenant wit

### Example 1
```powershell
Export-CsAcquiredPhoneNumber
PS C:\> Export-CsAcquiredPhoneNumber
```
```output
OrderId : 0e923e2c-ab0e-4b7a-be5a-906be8c
0e923e2c-ab0e-4b7a-be5a-906be8c
```
This example displays the OrderId of the export acquired phone numbers operation. The OrderId can be used to get the download link for the file.
This example displays the output of the export acquired phone numbers operation. The OrderId shown as the output string and can be used to get the download link for the file.

### Example 2
```powershell
Export-CsAcquiredPhoneNumber -Property "TelephoneNumber, NumberType, AssignmentStatus"
PS C:\> Export-CsAcquiredPhoneNumber -Property "TelephoneNumber, NumberType, AssignmentStatus"
```
```output
0e923e2c-ab0e-6h8c-be5a-906be8c
```
This example displays the output of the export acquired phone numbers operation with filtered properties. This file will only contain the properties indicated.

### Example 3
```powershell
PS C:\> $orderId = Export-CsAcquiredPhoneNumber
```
This example displays the use of variable "orderId" for the export acquired phone numbers operation. The OrderId string will be stored in the variable named "orderId" and no output will be shown for the cmdlet.

### Example 4
```powershell
PS C:\> Export-CsAcquiredPhoneNumber -Property "TelephoneNumber, NumberType, AssignmentStatus"
```
```output
OrderId : 0e923e2c-ab0e-6h8c-be5a-906be8c
```
This example displays the OrderId of the export acquired phone numbers operation. This file will only contain the properties indicated.
This example displays the use of variable "orderId" for the export acquired phone numbers operation with filtered properties. The OrderId string will be stored in the variable named "orderId" and no output will be shown for the cmdlet.

## PARAMETERS

Expand Down
41 changes: 37 additions & 4 deletions teams/teams-ps/teams/Get-CsExportAcquiredPhoneNumberStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ schema: 2.0.0
# Get-CsExportAcquiredPhoneNumberStatus

## SYNOPSIS
This cmdlet shows the status of the Export-CsAcquiredPhoneNumber cmdlet.
This cmdlet shows the status of the [Export-CsAcquiredPhoneNumber](Export-CsAcquiredPhoneNumber.md) cmdlet.

## SYNTAX

Expand All @@ -26,16 +26,49 @@ Get-CsExportAcquiredPhoneNumberStatus -OrderId <String>
## DESCRIPTION
This cmdlet returns the status of the [Export-CsAcquiredPhoneNumber](Export-CsAcquiredPhoneNumber.md) operation. The response will include the download link to the file if operation has been completed.

By Default the download link will remain active for 1 hour.
By default, the download link will remain active for 1 hour.

## EXAMPLES

### Example 1
```powershell
Get-CsExportAcquiredPhoneNumberStatus -OrderId 0e923e2c-ab0e-4b7a-be5a-906be8c
PS C:\> Get-CsExportAcquiredPhoneNumberStatus -OrderId 0e923e2c-ab0e-4b7a-be5a-906be8c
```
```output
Id : 0e923e2c-ab0e-4b7a-be5a-906be8c
CreatedAt : 2024-08-29 21:50:54Z
status : Success
DownloadLinkExpiry : 2024-08-29 22:51:17Z
DownloadLinkExpiry : <link>
```
This example displays the status of the export acquired phone numbers operation. The OrderId is the output from [Export-CsAcquiredPhoneNumber](Export-CsAcquiredPhoneNumber.md) cmdlet. The status contains the download link for the file along with expiry date.

### Example 2
```powershell
PS C:\> Get-CsExportAcquiredPhoneNumberStatus -OrderId $orderId
```
```output
Id : 0e923e2c-ab0e-4b7a-be5a-906be8c
CreatedAt : 2024-08-29 21:50:54Z
status : Success
DownloadLinkExpiry : 2024-08-29 22:51:17Z
DownloadLinkExpiry : <link>
```
This example displays the status of the export acquired phone numbers operation with the use of a variable named "orderId".

This example displays the OrderId of the export acquired phone numbers operation. The OrderId can be used to get the download link for the file.
### Example 3
```powershell
PS C:\> $order = Get-CsExportAcquiredPhoneNumberStatus -OrderId $orderId
PS C:\> $order
```
```output
Id : 0e923e2c-ab0e-4b7a-be5a-906be8c
CreatedAt : 2024-08-29 21:50:54Z
status : Success
DownloadLinkExpiry : 2024-08-29 22:51:17Z
DownloadLinkExpiry : <link>
```
This example stores the [Get-CsExportAcquiredPhoneNumberStatus](Get-CsExportAcquiredPhoneNumberStatus.md) cmdlet status for the "orderId" in the variable "order". This will allow a quick view of the order status without typing the cmdlet again.

## PARAMETERS

Expand Down