vmware / PowerCLI-Example-Scripts

http://blogs.vmware.com/powercli
Other
764 stars 608 forks source link

Data Object DesktopVirtualCenterProvisioningData haven't computeProfile propetry #593

Closed Po-temkin closed 2 years ago

Po-temkin commented 2 years ago

Describe the bug

$DesktopVirtualCenterProvisioningData haven't computeProfile propetry that described at this page: https://developer.vmware.com/apis/1298/view

$DesktopVirtualCenterProvisioningData | gm

   TypeName: VMware.Hv.DesktopVirtualCenterProvisioningData

Name                  MemberType Definition
----                  ---------- ----------
Equals                Method     bool Equals(System.Object obj)
GetHashCode           Method     int GetHashCode()
GetType               Method     type GetType()
ToString              Method     string ToString()
Datacenter            Property   VMware.Hv.DatacenterId Datacenter {get;set;}
HostOrCluster         Property   VMware.Hv.HostOrClusterId HostOrCluster {get;set;}
ImageManagementStream Property   VMware.Hv.ImageManagementStreamId ImageManagementStream {get;set;}
ImageManagementTag    Property   VMware.Hv.ImageManagementTagId ImageManagementTag {get;set;}
ParentVm              Property   VMware.Hv.BaseImageVmId ParentVm {get;set;}
ResourcePool          Property   VMware.Hv.ResourcePoolId ResourcePool {get;set;}
Snapshot              Property   VMware.Hv.BaseImageSnapshotId Snapshot {get;set;}
Template              Property   VMware.Hv.VmTemplateId Template {get;set;}
VmFolder              Property   VMware.Hv.VmFolderId VmFolder {get;set;}

Reproduction steps

$ViewServer = Connect-HVServer -server $fqdn -user $user -password $pass -domain $domain
$ViewAPI = $ViewServer.ExtensionData
$DesktopVirtualCenterProvisioningData = New-Object VMware.Hv.DesktopVirtualCenterProvisioningData
$DesktopVirtualCenterProvisioningData

Expected behavior

Output of $DesktopVirtualCenterProvisioningData is showing that object have computeProfile property.

Additional context

Horizon Connection Server 8.6.0 build - 20099816

kamennikolov commented 2 years ago

This new property has been introduced with Horizon 8.6 and the latest PowerCLI version is updated for Horizon 8.4. The property will appear in the next PowerCLI release when we update the Horizon module.