Open sbonds opened 3 years ago
We will check with the owner of this service.
@sbonds we are still working with the owners of the service about this feature request. Thanks for your patience.
@sbonds Thanks for reaching out. I have added the support for PS on the Retail Prices API in the backlog and will update the public documentation when we release the feature.
Closing this issue as it's being tracked in our feature backlog.
@mumami sorry to necro the thread but is there somewhere public we can see this backlog and verify the status of this item?
No worries :) Let me reopen the issue.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @ccmbpxpcrew.
Support for Azure Retail Prices API
Microsoft recently announced the creation of an API to provide retail pricing information:
Azure Retail Prices overview
It would be very useful to have PowerShell programmatic support for this API so we don't need to all independently implement our own REST queries directly into the API.
Proposed implementation details
Since pricing is a common feature to many different resources, as support is added it seems sensible to add new pricing-based cmdlets to the appropriate modules.
It would also be useful to get pricing for "related resources" but this starts a slippery slope of what qualifies as "related" (e.g. VMs have related storage by way of attached managed disks.)
Example VM retail pricing query
Get-AzVMCost
: Would take any of the usual methods of specifying a VM and provide the appropriate cost for that VM. Would default to the non-Windows non-Spot pay-as-you-go VM price. Cmdlet parameters would allow for including Windows in the pricing query, spot instances, or reserved instances based.Other examples:
Get-AzVMCost -Reserved 1
: 1 year reserved priceGet-AzVMCost -Reserved 3
: 3 year reserved priceGet-AzVMCost -Spot
: current spot price