简体   繁体   中英

Azure Rate Card API JSON response don't have Memory and CPU metrics for Virtual Machines

I am trying to query the Azure Rate card API using the below Endpoint

https://management.azure.com/subscriptions/ {subscription-id}/providers/Microsoft.Commerce/RateCard

I am able to see all azure resources with an hourly rate in its JSON response, but it doesn't have Memory and CPU values for Virtual Machines.

How to query the CPU, Memory along with hourly rate for Virtual Machines via REST API?

Unfortunately, the Rate Card API is only used for getting the price for each resource. The VM's detailed properties are not included.

If you want to get the Memory and CPU values of a VM size, you can use the Resource SKU API .

But, you may need to add some additional coding. This is a probable workaround. Hope it would be helpful to you.

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