Skip to content

Commit

Permalink
Updating Export-CsAcquiredPhoneNumber and Get-CsExportAcquiredPhoneNu…
Browse files Browse the repository at this point in the history
…mberStatus with examples
  • Loading branch information
pavellatif committed Aug 29, 2024
1 parent a8b9f3c commit 734b291
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
21 changes: 18 additions & 3 deletions teams/teams-ps/teams/Export-CsAcquiredPhoneNumber.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,33 @@ By default, this cmdlet returns all the phone numbers acquired by the tenant wit
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"
```
```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
$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 "oderId" and no output will be shown for the cmdlet.

### Example 4
```powershell
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 "oderId" and no output will be shown for the cmdlet.

## PARAMETERS

Expand Down
14 changes: 13 additions & 1 deletion teams/teams-ps/teams/Get-CsExportAcquiredPhoneNumberStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,20 @@ By Default the download link will remain active for 1 hour.
```powershell
Get-CsExportAcquiredPhoneNumberStatus -OrderId 0e923e2c-ab0e-4b7a-be5a-906be8c
```
This example displays the status of the export acquired phone numbers operation. The OrderId is the output from [Export-CsAcquiredPhoneNumber] cmdlet. The status contains the download link for the file along with expiry date.

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 2
```powershell
Get-CsExportAcquiredPhoneNumberStatus -OrderId $orderId
```
This example displays the status of the export acquired phone numbers operation with the use of variable named "orderId".

### Example 3
```powershell
$order = Get-CsExportAcquiredPhoneNumberStatus -OrderId $orderId
```

This example stores the [Get-CsExportAcquiredPhoneNumberStatus] cmdlet status for the "oderId" in variable "oder". This will allow quick view of the order status without typing the cmdlet again.

## PARAMETERS

Expand Down

0 comments on commit 734b291

Please sign in to comment.