VMware Horizon Community
njcorwin
Contributor
Contributor

VVGetPath : The provided object is not an expected vSphere object type. Object type is ClusterImpl

Author :

URL : http:////docs.vmware.com/en/VMware-Horizon-7/7.0/com.vmware.view.integration.doc/GUID-87E13256-ECEF-...

Topic Name : Determining Paths to vSphere Datastore Objects

Publication Name : View Integration

Product/Version : VMware Horizon 7/7.0

Question :

#$ClusterPath = VVGetPath(Get-Inventory -Id $ResourcePool.ParentId)

$FolderGroup = Get-Inventory -Id $ResourcePool.ParentID

$ClusterPath = VVGetPath(Get-Inventory -Id $FolderGroup.ParentID)

$Cluster = 'MyCluster'

$Datastore = Get-DataStore -Name 'MyDataStore'

$ResourcePool = Get-Cluster -Name $Cluster | Get-ResourcePool

VVGetDatastorePath $Datastore $ResourcePool

Tags (1)
0 Kudos
0 Replies