VirtualMachine
Represents Azure virtual machines.
Labels: :ArmResource:VirtualMachine
Properties:
id- VM resource ID (primary key)vmSize- VM size/SKUadminUsername- Administrator usernameallowExtensionOperations- Whether extensions are allowedcomputerName- Computer namevmId- Virtual machine IDos- Operating system typeimage- VM image offerimageVersion- VM image version
Relationships
Outgoing
- VirtualMachine →
HAS_NIC→ NetworkInterface - Network interfaces attached to the VM - VirtualMachine →
HAS_EXTENSION→ VMExtension - Extensions installed on the VM
Examples
// Find all VMs with their sizes
MATCH (vm:VirtualMachine)
RETURN vm.computerName, vm.vmSize, vm.os
// Find VMs and their network interfaces
MATCH (vm:VirtualMachine)-[:HAS_NIC]->(nic:NetworkInterface)
RETURN vm.computerName, collect(nic.name) AS networkInterfaces
// Find VMs with extensions
MATCH (vm:VirtualMachine)-[:HAS_EXTENSION]->(ext:VMExtension)
RETURN vm.computerName, ext.name, ext.type