A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
Hi ,
Thanks for reaching out to Microsoft Q&A.
no, the Azure Retail Prices API and the Azure Python SDK do not natively support subscription-type aware pricing such as Dev/Test, nor do they automatically apply Reserved Instance or Hybrid Benefit discounts.
more detail: https://prices.azure.com/api/retail/prices always returns list (retail) prices, primarily Pay-As-You-Go. Dev/Test pricing is not exposed as a separate flag, filter, or SKU in the API or any Azure SDK. Dev/Test discounts are enforced at billing time, not at the pricing catalog level. Similarly, Reserved Instances and Azure Hybrid Benefit are billing constructs, not price list variants. The SDK does not calculate these reductions for you. If you want accurate estimates, you must apply custom post-processing logic: detect Dev/Test–eligible services, apply known discount percentages, factor RI amortization, and adjust compute prices when AHB is enabled. For authoritative cost estimation, Azure Cost Management (Usage + Charges APIs) reflects actual billed amounts, but that is after consumption, not for upfront estimation.
Please 'Upvote'(Thumbs-up) and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.