|
| 1 | +--- |
| 2 | +external help file: Microsoft.Teams.ConfigAPI.Cmdlets-help.xml |
| 3 | +Module Name: Microsoft.Teams.ConfigAPI.Cmdlets |
| 4 | +online version: https://learn.microsoft.com/powershell/module/teams/get-csexportacquiredphonenumberstatus |
| 5 | +applicable: Microsoft Teams |
| 6 | +title: Get-CsExportAcquiredPhoneNumberStatus |
| 7 | +author: pavellatif |
| 8 | +ms.author: pavellatif |
| 9 | +ms.reviewer: |
| 10 | +manager: roykuntz |
| 11 | +schema: 2.0.0 |
| 12 | +--- |
| 13 | + |
| 14 | +# Get-CsExportAcquiredPhoneNumberStatus |
| 15 | + |
| 16 | +## SYNOPSIS |
| 17 | +This cmdlet exports the list of phone numbers acquired by Teams Phone System tenant. |
| 18 | + |
| 19 | +## SYNTAX |
| 20 | + |
| 21 | +### Get-CsExportAcquiredPhoneNumberStatus (Default) |
| 22 | +``` |
| 23 | +Get-CsExportAcquiredPhoneNumberStatus -OrderId <String> |
| 24 | +``` |
| 25 | + |
| 26 | +## DESCRIPTION |
| 27 | +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. |
| 28 | + |
| 29 | +By Default the download link will remain active for 1 hour. |
| 30 | + |
| 31 | +## EXAMPLES |
| 32 | + |
| 33 | +### Example 1 |
| 34 | +```powershell |
| 35 | +Get-CsExportAcquiredPhoneNumberStatus -OrderId 0e923e2c-ab0e-4b7a-be5a-906be8c |
| 36 | +``` |
| 37 | +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. |
| 38 | + |
| 39 | +## PARAMETERS |
| 40 | + |
| 41 | +### -OrderId |
| 42 | +Filters the returned results to only show the indicated properties in the file. |
| 43 | +```yaml |
| 44 | +Type: String |
| 45 | +Parameter Sets: (All) |
| 46 | +Aliases: |
| 47 | + |
| 48 | +Required: True |
| 49 | +Position: Named |
| 50 | +Default value: None |
| 51 | +Accept pipeline input: False |
| 52 | +Accept wildcard characters: False |
| 53 | +``` |
| 54 | +
|
| 55 | +### CommonParameters |
| 56 | +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). |
| 57 | +
|
| 58 | +## INPUTS |
| 59 | +
|
| 60 | +### -OrderId |
| 61 | +
|
| 62 | +## OUTPUTS |
| 63 | +
|
| 64 | +### Pending |
| 65 | +The output shows the status Pending when the request is created but processing has not been started. |
| 66 | +
|
| 67 | +```yaml |
| 68 | +Id : 0e923e2c-af0e-4b7a-be5a-906be8c |
| 69 | +CreatedAt : 6/24/2024 9:26:44 PM |
| 70 | + |
| 71 | +Status : Pending |
| 72 | +DownloadLinkExpiry : null |
| 73 | +DownloadLink : null |
| 74 | +``` |
| 75 | +
|
| 76 | +### InProgress |
| 77 | +The output shows the status InProgress when the request is being processed. |
| 78 | +
|
| 79 | +```yaml |
| 80 | +Id : 0e923e2c-af0e-4b7a-be5a-906be8c |
| 81 | +CreatedAt : 6/24/2024 9:26:44 PM |
| 82 | + |
| 83 | +Status : InProgress |
| 84 | +DownloadLinkExpiry : null |
| 85 | +DownloadLink : null |
| 86 | +``` |
| 87 | +
|
| 88 | +### Success |
| 89 | +The output shows the status Success with download link and expiry date for the link when the request is completed successfully. |
| 90 | +
|
| 91 | +```yaml |
| 92 | +Id : 0e923e2c-ab0e-4b7a-be5a-906be8c |
| 93 | +CreatedAt : 6/24/2024 9:16:44 PM |
| 94 | + |
| 95 | +Status : Success |
| 96 | +DownloadLinkExpiry : 6/24/2024 10:17:29 PM |
| 97 | +DownloadLink : https://<downloadLink> |
| 98 | +``` |
| 99 | +
|
| 100 | +### Failure |
| 101 | +The output shows the status Success with download link and expiry date for the link when the request is completed successfully. |
| 102 | +
|
| 103 | +```yaml |
| 104 | +Id : 0e923d2c-ab0e-4b7a-bg5a-906be8c |
| 105 | +CreatedAt : 6/24/2024 9:36:44 PM |
| 106 | + |
| 107 | +Status : Failure |
| 108 | +ErrorMessage : <Error message related to failure> |
| 109 | +``` |
| 110 | +
|
| 111 | +## NOTES |
| 112 | +
|
| 113 | +The cmdlet is available in Teams PowerShell module 6.1.0 or later. |
| 114 | +
|
| 115 | +The cmdlet is only available in commercial and GCC cloud instances. |
| 116 | +
|
| 117 | +## RELATED LINKS |
| 118 | +[Export-CsAcquiredPhoneNumber](Export-CsAcquiredPhoneNumber.md) |
0 commit comments