Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

How to get the configuration of a running VirtualMachine

$
0
0

Hello,

I'm a beginner with the SDK and I'm trying to get the configuration of a running VirtualMachine.

I'm able to connect to the virtual center and to the following:

 

Dim myVM As New VMware.Vim.VirtualMachine(vmClient, New VMware.Vim.ManagedObjectReference("VirtualMachine-vm-1404"))

 

I'm sure that the object myVM is correctly set coz I'm able to command the VirtualMachine (for example I can issue a MyVM.ShutdownGuest that works perfectly).

I wish to retrieve the configuration of the virtual machine, particularly I wish to get virtual disks configuration, but here is my problem, if I look into the managed objects that are supposed to store the infos I need they are empty!

 

VirtualMachineConfigInfo.png

since I'm a beginner with the SDK I think I'm missing something...

 

Please help


Viewing all articles
Browse latest Browse all 2218

Trending Articles