Resource Graph Query to fetch VM details with Data disk

Senthilnath TM 241 Reputation points
2024-03-16T12:05:15.37+00:00

Using Resource Graph Query, I am able to fetch the Azure VM details(microsoft.compute/virtualmachines) and Azure disk (microsoft.compute/disks) details with size separately.

Unable to join both the query, is it not supported?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,472 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
590 questions
{count} votes

Accepted answer
  1. VenkateshDodda-MSFT 19,631 Reputation points Microsoft Employee
    2024-03-18T09:39:19.4+00:00

    @Senthilnath TM Thanks for your response. I have modified the above queries and please use the below query which will give you the complete information like vm name, vm size, data disk names and disk sizes as well. I have uploaded the query in this GitHub repo as well.

    enter image description here

    Here is the sample output screenshot for your reference.

    enter image description here

    Hope this helps and let me know if you still have any further questions on this.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful