Automation

 View Only
  • 1.  Issue with Powercli extension

    Posted Feb 07, 2021 06:30 PM

     

    When I am truing to import powercli extension module ,I am getting below error message : 

     

    'C:\Users\Administrator\Documents\WindowsPowerShell\Modules\vmware.vimautomation.extensions\VMware.VimAutomation.Extensions.dll'.
    import-module : Method 'get_CreateDate' in type 'VMware.VimAutomation.Extensions.InstantClone.Types.InstantCloneVirtualMachineImpl' from
    assembly 'VMware.VimAutomation.Extensions, Version=3.0.0.1649, Culture=neutral, PublicKeyToken=null' does not have an implementation.
    At line:1 char:1
    + import-module vmware.vimautomation.extensions -verbose
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Import-Module], TypeLoadException
    + FullyQualifiedErrorId : System.TypeLoadException,Microsoft.PowerShell.Commands.ImportModuleCommand

    I followed the procedure mentioned in the fling site . after download , I unblocked the zip .



  • 2.  RE: Issue with Powercli extension

    Posted Feb 07, 2021 07:16 PM

    Afaik that Fling is not actively maintained anymore.
    I don't think you can still use it.
    Which cmdlet from the extension do you want to use?
    The VSAN cmdlets are since some time all integrated in PowerCLI



  • 3.  RE: Issue with Powercli extension

    Posted Feb 07, 2021 07:20 PM

    for Instant Clone 



  • 4.  RE: Issue with Powercli extension

    Posted Feb 07, 2021 07:35 PM

    I already provided an alternative for that in the other thread on which you just posted.



  • 5.  RE: Issue with Powercli extension

    Posted Feb 07, 2021 07:47 PM

    Instantclone cmdlet requires powercli extension ... is that correct ? the alternative also asked to import the vmware.vimautomation.extension module ... i am facing issue while  Importing it .



  • 6.  RE: Issue with Powercli extension

    Posted Feb 07, 2021 07:51 PM

    No it doesn't.
    William's InstantClone module doesn't need that Extension, it uses the public API.
    See also New Instant Clone Architecture in vSphere 6.7 – Part 1



  • 7.  RE: Issue with Powercli extension

    Posted Feb 07, 2021 07:51 PM

    Are you mentioning the below  powershell module ?  

    https://github.com/vmware/PowerCLI-Example-Scripts/blob/master/Modules/InstantClone/InstantClone.psm1

     

    I  will try this .