Reply to Message

View discussion in a popup

Replying to:
haripetrov
Contributor
Contributor

How to use Get-View instead of Get-VM for BusSharingMode of a VM

Again, another question related with Get-View. I searched a lot for documentation but still I don't get the logic how to find the right properties which I need to use.

In this case I need to transfer this one:

Get-VM | Get-ScsiController | Where-Object {$_.BusSharingMode -eq ˜Physical"} | Select {$_.Parent.Name}, BusSharingMode

into:

Get-View -ViewType VirtualMachine -Property Name,Config.NameofthePropertyforBusSharingMode

I will be grateful if someone could provide a documentation (or at least give me a clue what to read to get oriented) about these properties and their format so that they can be used for Get-View.

The closest thing which I found is this one: http://pubs.vmware.com/vi3/sdk/ReferenceGuide/vim.VirtualMachine.html and the VirtualMachineConfigInfo: http://pubs.vmware.com/vi3/sdk/ReferenceGuide/vim.vm.ConfigInfo.htmlhttp://pubs.vmware.com/vi3/sdk/ReferenceGuide/vim.vm.ConfigInfo.html
I guess that in this case we are talking about VirtualHardware (SCSI controller): http://pubs.vmware.com/vi3/sdk/ReferenceGuide/vim.vm.VirtualHardware.html and still I cannot make the connection. Smiley Happy

Reply
0 Kudos