Search code examples
azureazure-billing-api

How to get VM details from Azure Rate-API metadata


i am trying to get exhaustive list of all Azure Services available in sub and its pricing using RATE API. I wanted to confirm if the RATE API will return VM details like, size, core, RAM etc. "D1: 1 cores, 3.5 GB RAM, 50 GB disk"

Currently the EA portal which is based on billing API i believe return just the VM type: 1 standard virtual machine(s), d1v2 size: 744 hours

Can someone confirm if RATE api will return the VM details as well?

thanks


Solution

  • The RateCard API doesn't return VM details. However, you can use this API - https://learn.microsoft.com/en-us/rest/api/compute/virtualmachines/virtualmachines-list-sizes-region. Unfortunately, there is no common column/key for you to join the responses from the two APIs.