Hey everyone. I recently just installed this module "VMware Cloud on AWS Module", however when I try to run any of the commands in the module I get the following error:
Get-Organization : Could not load type 'VMware.VimAutomation.Vmc.Interop.V1.VmcClient' from assembly 'VMware.VimAutomation.Vmc.Interop, Version=12.0.0.1757, Culture=neutral, PublicKeyToken=null'.
At line:1 char:1
+ Get-Organization
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-Organization], TypeLoadException
+ FullyQualifiedErrorId : ProcessRecord_Failed,VMware.VimAutomation.Vmc.Commands.GetOrganization
I checked, and I believe any associated modules are up to date. I've tested in both PowerShell 5.1 and Core 7. Both give me the same error.
Any ideas anyone?
I'm not sure where this Get-Organization cmdlet comes from, or do you mean Get-VmcOrganization?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hey Luc, long time now speak! I hope you are doing well.
I am actually using this module: VMware.VimAutomation.VmcPreview (from here:PowerCLI for VMware Cloud on AWS | VMware Flings ) What I am trying to do is querying my VMC accounts and get a list of all running SDDC's and how many Hosts running in the SDDCs and create a report.
I'll take a look at Get-VmcSddcCluster, but I don't think it will show my how many hosts are in my SDDCs.
Hi Simon.
Is there a specific reason you are using the Fling instead of the official VMC module in PowerCLI 12.0?
See also What’s New for the VMware Cloud on AWS PowerCLI Module
Also be aware that the fling has a prereq on PowerCLI 11.0, and I'm not sure the Fling works with more recent PowerCLI versions.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
The reason I was using that Fling is that I don't think Get-VmcSddcCluster from the official module will give me the data I am looking for.
Let me test it, see if it does give me the information I need.
I was referring to the Get-VmcOrganization cmdlet, which is the 'official' version of the Get-Organization cmdlet in the Fling afaik.
See the blog post I linked to earlier.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
It looks like I can probably do what I need to do with the official module with a little bit of extra digging.
(Get-VmcSddcCluster -Sddc "<SDDC NAME>”).sddc.HostCount
Thanks for the second pair of eyes Luc.