Automation

 View Only
  • 1.  Add-AutomaticLinkedClonePool is not recognized

    Posted Aug 21, 2018 02:48 PM

    I am somewhat new to PowerCLI and I'm trying to run Add-AutomaticLinkedClonePool, but gives the error below, I believe the incorrect module is imported, I have included a list of modules I have loaded.

    Server info, Horizon 7.4 vSphere 6.5 running on a local desktop that is connected to a connection server.

    Modules loaded.

    Binary     6.0.0.0    VMware.DeployAutomation

    Binary     6.0.0.0    VMware.ImageBuilder

    Binary     6.5.0.4... VMware.VimAutomation.Cis.Core

    Binary     6.5.0.4... VMware.VimAutomation.Cloud

    Manifest   6.5.0.4... VMware.VimAutomation.Common

    Binary     6.5.0.2... VMware.VimAutomation.Core           HookGetViewAutoCompleter

    Binary     6.0.0.0    VMware.VimAutomation.HA

    Binary     7.0.2.4... VMware.VimAutomation.HorizonView

    Binary     6.5.0.4... VMware.VimAutomation.License

    Binary     6.5.0.4... VMware.VimAutomation.PCloud

    Manifest   6.5.0.4... VMware.VimAutomation.Sdk            Get-PSVersion

    Binary     6.5.0.4... VMware.VimAutomation.Storage

    Binary     6.5.0.4... VMware.VimAutomation.Vds

    Binary     6.5.0.4... VMware.VimAutomation.vROps

    Binary     6.0.0.0    VMware.VumAutomation



  • 2.  RE: Add-AutomaticLinkedClonePool is not recognized

    Posted Aug 21, 2018 04:14 PM

    I think you are trying a cmdlet from an older version of the View module.

    Check the cmdlets you have

    Get-Command -Module VMware.VimAutomation.HorizonView



  • 3.  RE: Add-AutomaticLinkedClonePool is not recognized

    Posted Aug 21, 2018 04:40 PM

    I only get back cmdlet's Connect-HVServer and Disconnect-HVServer



  • 4.  RE: Add-AutomaticLinkedClonePool is not recognized
    Best Answer

    Posted Aug 21, 2018 04:53 PM

    That is correct, that's why I pointed you to the VMware.HV.Helper module.
    That provides functions that are wrappers around several of the available methods in the API.

    See Automating VMware Horizon 7 with VMware PowerCLI 6.5, which explains the concept.

    And I would advise to upgrade your PowerCLI version, since yesterday it is at 10.2.0



  • 5.  RE: Add-AutomaticLinkedClonePool is not recognized

    Posted Aug 21, 2018 04:19 PM

    With those later versions of Horizon cmdlets, it is strongly advised to use the VMware.HV.Module as well.

    See New vmware.hv.helper cmdlets (also looking for ideas!)