Get Azure Resource Utilization by using azure COSTMANAGEMENT-API

529 views Asked by At

Is there any way to get Cost and Utilization(CPU, Memory, DTU) trend of azure resources by using azure cost management apis.

1

There are 1 answers

0
SauravDas-MT On

If you check this Azure Cost Management documentation, then you will find that -

The Azure Cost Management APIs provide the ability to explore cost and usage data by creating customized filters and expressions allowing you to answer consumption-related questions for your Azure resources.

But note that these APIs are currently available for Azure Enterprise customers. So you can use it if you have the Enterprise Subscription.

To solve your problem you can use the Azure Consumption APIs. These APIs support Enterprise Enrollments and also some Web Direct Subscriptions. The Azure Consumption APIs give you programmatic access to cost and usage data for your Azure resources.

  • You should use Balances API, to get a monthly summary of information on balances, new purchases, Azure Marketplace service charges, adjustments, and overage charges.

  • And use Budgets API, to to create either cost or usage budgets for resources, resource groups, or billing meters.

  • Use the Usage Details API to get charge and usage data for all Azure 1st party resources you have.

Currently Balances API and Budgets API is only for Enterprise Customers only.