Forum Discussion

AChopra1012's avatar
Jan 17, 2023

Need to get a list of VMs with their domains.

Hi Team,

 

We Need to get a list of VMs along with their domains using KQL script.

Can someone please help on this?

We have over 100 subscriptions across our estate.

Thanks

2 Replies

    • DarrenRD's avatar
      DarrenRD
      Copper Contributor
      you can get VM list from the azure portal , select all resources from the home page and filter subscription == all and type equal virtual machine
      or for KQL compile a query as per link below
      https://www.geeksforgeeks.org/microsoft-azure-getting-vmcomputer-records-properties/

Resources