Forum Discussion
AChopra1012
Jan 17, 2023Copper Contributor
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
- AChopra1012Copper ContributorHi Team,
Could you kindly assist on this?
Thanks in advance!!- DarrenRDCopper Contributoryou 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/