I would need your help to understand, why while getting a list of Azure ComputeSku, all of them has its "costs" field set to null (see my screenshot below). It happens with any of my retrieved resource types (virtualMachines, availabilitySets).
Any idea ?
(azure-mgmt-compute 1.41.3)
Thanks in advance
2
Answers
By relying on the AZURE REST API, i do not have any cost in my query result. The query:
The response:
The Azure Price Sheet is a bit of a mess.
Download the Microsoft Price Sheet and try to search for the specific VM.
You will see there are tons of version of the same VM based on the region or discount.
Then, based on the columns of the CSV, you now have an idea about how to create an API Call that could give you what you want.