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

1.2k Views Asked by At

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

1

There are 1 best solutions below

4
Stanley Gong On

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

On Azure Poral: enter image description here

The request of API calling : enter image description here You can also use QueryFilter in query dataset to get the result you need directly.

Result: enter image description here

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