How can we improve Azure Virtual Machines?

API to retrieve a VM's dependent resources

Given that I know my Virtual Machine's ResourceGuid, how can I find out the ResourceGuids of Storage, Network & Data Management components associated with that specific VM ?

This is essential to identify the total cost of a specific VM from the downloaded usage statistics CSV file.

Usage details has resource wise metrics with unique ResourceGuid and we need a way to find out the id's of resources associated with a particular VM.

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

1 vote
Sign in
(thinking…)
Sign in with: Microsoft
Signed in as (Sign out)

We’ll send you updates on this idea

Jay Kumar shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

0 comments

Sign in
(thinking…)
Sign in with: Microsoft
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base