最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to get Azure contract-based pricing via API for authenticated users? - Stack Overflow

programmeradmin1浏览0评论

I've reviewed the Azure Retail Prices API, which provides pricing information for unauthenticated users:

However, this API does not return pricing based on customer-specific contract agreements. For those prices, users must log in and use the Azure Pricing Calculator, which is not integrable with applications and does not expose an API:

/

What are my options for accessing customer-specific (contract-based) pricing through an authenticated method or API?

I've reviewed the Azure Retail Prices API, which provides pricing information for unauthenticated users:

https://learn.microsoft/en-us/rest/api/cost-management/retail-prices/azure-retail-prices

However, this API does not return pricing based on customer-specific contract agreements. For those prices, users must log in and use the Azure Pricing Calculator, which is not integrable with applications and does not expose an API:

https://azure.microsoft/en-us/pricing/calculator/

What are my options for accessing customer-specific (contract-based) pricing through an authenticated method or API?

Share Improve this question asked 2 days ago Allan XuAllan Xu 9,40618 gold badges80 silver badges166 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Price Sheet is a part of Azure Consumption API.

Azure Consumption APIs provide access to:

  • Enterprise Customers Only

    • Price sheet

    • Budgets

    • Forecasts

    • Balances

    • Tags

    • Cost Tags

  • Enterprise and Web Direct Customers

    • Reservation Details

    • Reservation Summaries

    • Marketplace Charges

    • Usage Details

    • Reservation Recommendations

List of Unsupported Subscription Types (Offer IDs):

  • MS-AZR-0145P (CSP)

  • MS-AZR-0146P (CSP)

  • MS-AZR-159P (CSP)

  • MS-AZR-0036P (sponsored)

  • MS-AZR-0143P (sponsored)

  • MS-AZR-0015P (internal)

  • MS-AZR-0144P (DreamSpark)

Specification: Price Sheet - Get REST API.

Before implement your solution you can test it with Azure CLI with command:

az consumption pricesheet show [--billing-period-name]
                               [--ids]
                               [--include-meter-details]
                               [--subscription]

Azure CLI is Open Source, so you can inspire from this command code on GitHub.

发布评论

评论列表(0)

  1. 暂无评论