All VMs are gathered. Check which VMs are running (we only interested in those) Check if the running VMs have the tag "powerstate=alwayson". If not, deallocate (poweroff) the VM.
All VMs are gathered. Check which VMs are running (we only interested in those) Check if the running VMs have the tag "powerstate=alwayson". If not, deallocate (poweroff) the VM.