Skip to content

Commit 91492ce

Browse files
authored
Merge pull request #12094 from pavellatif/main
Updating Export-CsAcquiredPhoneNumber examples
2 parents dfd1e2d + fc0a6f8 commit 91492ce

File tree

2 files changed

+57
-9
lines changed

2 files changed

+57
-9
lines changed

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

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,36 @@ By default, this cmdlet returns all the phone numbers acquired by the tenant wit
6161

6262
### Example 1
6363
```powershell
64-
Export-CsAcquiredPhoneNumber
64+
PS C:\> 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
73-
Export-CsAcquiredPhoneNumber -Property "TelephoneNumber, NumberType, AssignmentStatus"
73+
PS C:\> Export-CsAcquiredPhoneNumber -Property "TelephoneNumber, NumberType, AssignmentStatus"
74+
```
75+
```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+
PS C:\> $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 "orderId" and no output will be shown for the cmdlet.
85+
86+
### Example 4
87+
```powershell
88+
PS C:\> Export-CsAcquiredPhoneNumber -Property "TelephoneNumber, NumberType, AssignmentStatus"
7489
```
7590
```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 "orderId" and no output will be shown for the cmdlet.
7994

8095
## PARAMETERS
8196

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

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ schema: 2.0.0
1414
# Get-CsExportAcquiredPhoneNumberStatus
1515

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

1919
## SYNTAX
2020

@@ -26,16 +26,49 @@ Get-CsExportAcquiredPhoneNumberStatus -OrderId <String>
2626
## DESCRIPTION
2727
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.
2828

29-
By Default the download link will remain active for 1 hour.
29+
By default, the download link will remain active for 1 hour.
3030

3131
## EXAMPLES
3232

3333
### Example 1
3434
```powershell
35-
Get-CsExportAcquiredPhoneNumberStatus -OrderId 0e923e2c-ab0e-4b7a-be5a-906be8c
35+
PS C:\> Get-CsExportAcquiredPhoneNumberStatus -OrderId 0e923e2c-ab0e-4b7a-be5a-906be8c
3636
```
37+
```output
38+
Id : 0e923e2c-ab0e-4b7a-be5a-906be8c
39+
CreatedAt : 2024-08-29 21:50:54Z
40+
status : Success
41+
DownloadLinkExpiry : 2024-08-29 22:51:17Z
42+
DownloadLinkExpiry : <link>
43+
```
44+
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.
45+
46+
### Example 2
47+
```powershell
48+
PS C:\> Get-CsExportAcquiredPhoneNumberStatus -OrderId $orderId
49+
```
50+
```output
51+
Id : 0e923e2c-ab0e-4b7a-be5a-906be8c
52+
CreatedAt : 2024-08-29 21:50:54Z
53+
status : Success
54+
DownloadLinkExpiry : 2024-08-29 22:51:17Z
55+
DownloadLinkExpiry : <link>
56+
```
57+
This example displays the status of the export acquired phone numbers operation with the use of a variable named "orderId".
3758

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.
59+
### Example 3
60+
```powershell
61+
PS C:\> $order = Get-CsExportAcquiredPhoneNumberStatus -OrderId $orderId
62+
PS C:\> $order
63+
```
64+
```output
65+
Id : 0e923e2c-ab0e-4b7a-be5a-906be8c
66+
CreatedAt : 2024-08-29 21:50:54Z
67+
status : Success
68+
DownloadLinkExpiry : 2024-08-29 22:51:17Z
69+
DownloadLinkExpiry : <link>
70+
```
71+
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.
3972

4073
## PARAMETERS
4174

0 commit comments

Comments
 (0)