Skip to content

Commit 734b291

Browse files
committed
Updating Export-CsAcquiredPhoneNumber and Get-CsExportAcquiredPhoneNumberStatus with examples
1 parent a8b9f3c commit 734b291

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

teams/teams-ps/teams/Export-CsAcquiredPhoneNumber.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,33 @@ By default, this cmdlet returns all the phone numbers acquired by the tenant wit
6464
Export-CsAcquiredPhoneNumber
6565
```
6666
```output
67-
OrderId : 0e923e2c-ab0e-4b7a-be5a-906be8c
67+
0e923e2c-ab0e-4b7a-be5a-906be8c
6868
```
69-
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.
69+
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.
7070

7171
### Example 2
7272
```powershell
7373
Export-CsAcquiredPhoneNumber -Property "TelephoneNumber, NumberType, AssignmentStatus"
7474
```
7575
```output
76+
0e923e2c-ab0e-6h8c-be5a-906be8c
77+
```
78+
This example displays the output of the export acquired phone numbers operation with filtered properties. This file will only contain the properties indicated.
79+
80+
### Example 3
81+
```powershell
82+
$orderId = Export-CsAcquiredPhoneNumber
83+
```
84+
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.
85+
86+
### Example 4
87+
```powershell
88+
Export-CsAcquiredPhoneNumber -Property "TelephoneNumber, NumberType, AssignmentStatus"
89+
```
90+
```output
7691
OrderId : 0e923e2c-ab0e-6h8c-be5a-906be8c
7792
```
78-
This example displays the OrderId of the export acquired phone numbers operation. This file will only contain the properties indicated.
93+
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.
7994

8095
## PARAMETERS
8196

teams/teams-ps/teams/Get-CsExportAcquiredPhoneNumberStatus.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,20 @@ By Default the download link will remain active for 1 hour.
3434
```powershell
3535
Get-CsExportAcquiredPhoneNumberStatus -OrderId 0e923e2c-ab0e-4b7a-be5a-906be8c
3636
```
37+
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.
3738

38-
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.
39+
### Example 2
40+
```powershell
41+
Get-CsExportAcquiredPhoneNumberStatus -OrderId $orderId
42+
```
43+
This example displays the status of the export acquired phone numbers operation with the use of variable named "orderId".
44+
45+
### Example 3
46+
```powershell
47+
$order = Get-CsExportAcquiredPhoneNumberStatus -OrderId $orderId
48+
```
49+
50+
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.
3951

4052
## PARAMETERS
4153

0 commit comments

Comments
 (0)