Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.26k stars 3.86k forks source link

Add Support for Azure Retail Prices API #14596

Open sbonds opened 3 years ago

sbonds commented 3 years ago

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:

dingmeng-xue commented 3 years ago

We will check with the owner of this service.

dcaro commented 3 years ago

@sbonds we are still working with the owners of the service about this feature request. Thanks for your patience.

mumami commented 3 years ago

@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.

mumami commented 3 years ago

Closing this issue as it's being tracked in our feature backlog.

JustinGrote commented 1 year ago

@mumami sorry to necro the thread but is there somewhere public we can see this backlog and verify the status of this item?

isra-fel commented 1 year ago

No worries :) Let me reopen the issue.

microsoft-github-policy-service[bot] commented 1 year ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @ccmbpxpcrew.