Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 251495

Re: How to find the storage of a VM in Cloud director

$
0
0

Hi Deepak,

 

 

The VM harddisk quantity is a bit buried. You can find the storage for a particular harddisk of a particular VM like so:

 

$vm=get-civm

$hardware=$vm.ExtensionData.GetVirtualHardwareSection()

($hardware.Item |where {$_.resourcetype.value -eq"17"}).hostresource[0].anyattr[0]."#text"

 

If you are querying more than 1 VM, or a VM with more than 1 harddisk, you will have to modify this accordingly.

 

 

Cheers,

 

Jake


Viewing all articles
Browse latest Browse all 251495

Trending Articles



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