简体   繁体   中英

How can I get the cost of an Azure Resource group from the Azure api?

I'm trying to get the cost of my VM from the Azure Api in c#. I'm pretty much able to get all the VM information but the cost its accumulated so far this month. Any ideas how I can do that?

I'd like to see the total accumulated cost for this period for the VM

To check the accumulated cost for your VM you can use the Azure pricing calculator .

Below is the screenshot to check the cost of the vm for the day/month/Hour :

在此处输入图片说明

Still if you have any query/doubt you can reach out to Azure support

For more information please refer the below links:

SO THREAD: Pricing API for Azure

MS DOC: Azure Retail Prices API sample

Blog Analyze And Monitor Azure Spending

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM