1 Reply Latest reply on Aug 10, 2020 3:11 PM by sjesse

    Horizon API Create Desktop

    Daithi_N Novice

      Hi All,

       

      Has anyone use the Create_Deskop within the Class "VMware.Hv.Desktop"

       

      Looking at the Documentation, if you want to create a new Desktop within an Automated pool, How do you pass in the pool Name into the Spec, I don't see anything within the Documentation:

       

       

      https://vdc-download.vmware.com/vmwb-repository/dcr-public/93e1f7c4-fae6-4e10-b3be-7c73720b4589/2f59c85d-2770-45cd-bd9d-…

       

      $spec = New-Object VMware.Hv.DesktopSpec

      $spec.AutomatedDesktopSpec

       

      $Services1 = New-Object VMware.Hv.Desktop

      $Services1.Desktop_Create($spec)

       

      For Manual Pools, I can use

      add-hvdesktop -poolname POOLNAME -machines MachineName

       

      But for most cases, I don't have the ability to pass in a Machine Name, and wondering would the Create_Desktop do for Automated pools, and let the Horizon Server generate the Naming.