etcheverri
Contributor
Contributor

from vsphere perspective , there is some way to find his respective "vcloud vm"?

i am doing , something like that:

 

$vm = get-vm -name test_001-xjzG

$vm.ExtensionData.MoRef.value

vm-194945

get-civm | where-object {$_.Extensiondata.vCloudExtension.any.VmVimObjectRef.Moref -eq "vm-194945"}

but take ages!

any idea , clues?

the final idea is , in a case of a esxi host crash , make a list of the vcloud vms and orgs/vdcs affected.

thanks in advance.

0 Kudos
1 Reply
Macleud
Enthusiast
Enthusiast

Hi.

$Moref = (Get-View -ViewType VirtualMachine -Filter @{"Name" = "test_001-xjzG"}).MoRef.value

Search-Cloud -QueryType AdminVM -Filter "Moref==$Moref"

0 Kudos