Azure Get Utilization Data and usage % for multiple VMs with Rest API

Sam 0 Reputation points

Hi All,

I am trying to get all or multiple VM usage/utilization data from Azure. The API below provides CPU % for 1 VM at a time:

  1. Is there a way to get multiple or all VMs in a subscription with one API?
  2. Is there a way to include other metrics like disk operations or CPU Min/Max?



Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,291 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. hossein jalilian 4,285 Reputation points

    Hello Sam,

    Thanks for posting your question in the Microsoft Q&A forum.

    Here's how you can achieve this:

    This API allows you to retrieve the instance view of multiple VMs in a single request.

    • To include additional metrics like disk operations and CPU min/max, you can use the "expand" parameter in the AP

    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful

    1 person found this answer helpful.