Closed brwilkinson closed 2 years ago
Thanks for bringing it to our attention @brwilkinson. We are looking into it. Another clarification though - as it is right now, this problem seems to affect both deploymentstacks and snapshots cmdlets. The examples you provided for stacks makes a GET call and fetches a specific stack while the example for snapshots makes a LIST call on all the snapshots of that stack, which is why you noticed the difference in their return types and members.
Oh sure thanks, I didn't test the returning multiple stacks. Thanks for the update.
@brwilkinson this release should have fixed this issue - https://github.com/Azure/deployment-stacks/releases/tag/v0.1.1 fyi -Select -first and -Select-Object -first can still cause some issues, I am still looking into that, but the return object should be unrolling now and every other operation should go about smoothly.
Thanks @Xynoclafe I'll pull down the update.
@brwilkinson - did you get a chance to verify this?
You can close it, I will do a round 2 of testing.
SGTM
Get-AzResourceGroupDeploymentStack only returns a single object, it functions correctly... see Get-Member shows the correct type.
However with the snapshots it's a collection and it's not unrolling the object when it is returned.
This is not expected behavior ...
Same example with Storage Cmdlets
Types or returns
psdeploymentstack
psdeploymentstacksnapshot
storage
What this breaks
Above does not work with the snapshots, it returns ALL of them.
Other pipeline Cmdlets will also not work e.g. filtering and sorting.
e.g. works correctly with deployments, however this would not work with the snapshots.