简体   繁体   中英

How to get the Cost of Azure Managed Disk based on the VM Size using powershell or API?

I am looking for a PowerShell cmdlet or API, which can give me the cost of the Managed Disk as we can see from the Azure Portal

You can call the Azure cost management query API to get the real cost of your Managed Disks.

On Azure Poral: 在此处输入图像描述

The request of API calling: 在此处输入图像描述 You can also use QueryFilter in query dataset to get the result you need directly.

Result: 在此处输入图像描述

You can also Azure PowerShell to do this. Details see here .

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