diff --git a/teams/teams-ps/teams/Export-CsAcquiredPhoneNumber.md b/teams/teams-ps/teams/Export-CsAcquiredPhoneNumber.md index c4b2576788..88d7d03b96 100644 --- a/teams/teams-ps/teams/Export-CsAcquiredPhoneNumber.md +++ b/teams/teams-ps/teams/Export-CsAcquiredPhoneNumber.md @@ -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 diff --git a/teams/teams-ps/teams/Get-CsExportAcquiredPhoneNumberStatus.md b/teams/teams-ps/teams/Get-CsExportAcquiredPhoneNumberStatus.md index dbf42921db..a0d22ec174 100644 --- a/teams/teams-ps/teams/Get-CsExportAcquiredPhoneNumberStatus.md +++ b/teams/teams-ps/teams/Get-CsExportAcquiredPhoneNumberStatus.md @@ -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 @@ -26,16 +26,49 @@ Get-CsExportAcquiredPhoneNumberStatus -OrderId ## 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 : +``` +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 : +``` +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 : +``` +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