Invoke-RestMethod is truncating results
Votes from Connect: 11
Original Date Submitted: 9/29/2012 1:53:59 AM
Handle: Trevor Sullivan
Site Name: PowerShell
Feedback ID: 765261
Frequency: Always Happens
Regression: No, this is new to the most recent version
The Invoke-RestMethod cmdlet in PowerShell v3 is truncating the results that come back from the Windows Azure REST API (querying for a list of ServiceBus queues), formatted as a XML AtomPub document. Within the results of the AtomPub document, only every other AtomPub "title" is returned from Invoke-RestMethod, rather than a complete result set.
This behavior can be confirmed by using the parameters -PassThru -OutFile to export the AtomPub document to a file. After this, you can cast the file contents to a XML document using the [XML] type accelerator, which then has the correct number of "titles."
Product Studio item created by Connect Synchronizer due to creation of feedback ID 765261 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=765261).
1. Call the Windows Azure ListQueues API using Invoke-RestMethod.
- Examine output from Invoke-RestMethod. Only every other queue will be returned, rather than a complete listing.
The Invoke-RestMethod cmdlet should return a complete array of all AtomPub "titles" instead of truncating them.
Internal BugId: 3846