I've downloaded the usage statistics file from billing section and I could see the data categorized by different type of resources consumed by a virtual machine. Eg.
Name ResourceGuid
Unit Consumed
"Virtual Machines" "1b4d8861-8cbc-40c8-88f9-e1b78509c3be"
"GB" 0.000158
"Networking" "9995d93a-7d35-4d3f-9c69-7a7fea447ef4"
"Hours" 11.100002
"Data Management" "964c283a-83a3-4dd4-8baf-59511998fe8b"
"10,000s" 6.8899
"Storage" "0e9d0c9b-ab6d-4312-9c7e-3794e22af9c4"
"GB" 0.436496
I'm looking for a way to retrieve the ResourceGuid of all the resources linked to a particular VM, to find out the total cost of it (VM + Networking + Data Management + Storage)
Is it possible through Service Management API? Or any other means?