VMware Cloud Community
tkn1980
Contributor
Contributor

Issue with Powercli extension

 

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 .

Reply
0 Kudos
6 Replies
LucD
Leadership
Leadership

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


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
tkn1980
Contributor
Contributor

for Instant Clone 

Reply
0 Kudos
LucD
Leadership
Leadership

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


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
tkn1980
Contributor
Contributor

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 .

Reply
0 Kudos
LucD
Leadership
Leadership

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


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
tkn1980
Contributor
Contributor

Are you mentioning the below  powershell module ?  

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

 

I  will try this .

Tags (1)
Reply
0 Kudos