I’m implementing a compliance policy where I check the names of VM disks.
I create a condition policy where the check expression is: “FIND VM and Instance.Hardware.Disks : Device Name RUBY CHECK ALL Present = ‘true’”.
I’d like to know how the “device_name” is passed to the ruby expression I’m writing.
I’d like to known too if I can retrieve the vm from $evm.root at that point.
To make things more clear, the naming policy i want to check is something like: "every disks of a VM are named according to the pattern: _