Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 178040

Find VC:storagePod from either VC:ClusterComputeResource or VC:Hostsystem or VC:VirtualMachine

$
0
0

The need... I have a shared templates mount that all cloning operations take place on, we use NetApp FlexClone to rapidly produces clones. The resulting clones are now on the shared template mount. After the whole automation process is complete I want to trigger a vRA EBS to svMotion the VM to the datastore cluster of the compute cluster the VM is running on. There is only one datastore cluster aka storagePod per compute cluster.

So far I have working code to do the svMotion with a manual selection of the storagePod and VM. I have working code to find the host and computer cluster from the VM.

What I haven't been able to find is a way to find the VC:StoragePod from either the VC:VirtualMachine, VC:HostSystem, or VC:ClusterComputeResource

Does anyone have a snippet that will find VC:StoragePod from any of these?


Viewing all articles
Browse latest Browse all 178040

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>