Good day.
There is a hypervisor with a bundle of virtual machines. VHDs are stored decentralized, some are encrypted. In the case of a forced reboot of the machine to which the encrypted disks are connected, they fall off.
Is it possible to issue a type check in one script: if VHD is not available → disconnect from the machine? And if so, is it possible to somehow collect the VHD locations for verification in one single request in order not to make such a check on each disk manually?