in powercli 10 on powershell version :
Name Value
---- -----
PSVersion 6.0.2
PSEdition Core
GitCommitId v6.0.2
OS Linux 3.10.0-862.3.2.el7.x86_64 #1 SMP Mon May 21 23:36:36 UTC 2018
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
I know that the Srm module has this problem, but the Cloud module apparently also has a test for Core builtin.
It seems it has to be a Desktop edition, see VMware.VimAutomation.Cloud.psm1
It seems that restriction is not listed in the Release Notes.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I've tested Import-Module with VMware.VimAutomation.Cloud v10.0.0.7893901 and Core 6.0.2 and it gives "VMware.VimAutomation.Cloud module is not currently supported on the Core edition of PowerShell"
The same is true for VMware.VimAutomation.HorizonView v7.5.0.8827468 and v7.1.0.7547311 which is what actually led me here.
Have you checked that you are running on a 'Desktop'?
What does it say in $PSVersionTable.PSEdition?
See the actual test that is performed.
Throw "VMware.VimAutomation.Cloud module is not currently supported on the Core edition of PowerShell."
}
else {
$binaryModuleRoot = Join-Path -Path $PSModuleRoot -ChildPath 'net45'
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference