VMware Cloud Foundation 9.x
The error is caused by a module conflict within the PowerShell session.
The VCF.PowerCLI module, which is a pre-requisite for the vLCM Image transition script, conflicts with the standard VMware.PowerCLI module.
Upgrading from an existing installation of VMware.PowerCLI is discouraged and recommended to perform clean installation. Refer to the installation steps.
To resolve this issue, ensure that only the VCF.PowerCLI module is active and VMware.PowerCLI is removed from the environment where the script is being executed.
Open a PowerShell terminal as Administrator.
Uninstall the existing VMware.PowerCLI module: Uninstall-Module -Name VMware.PowerCLI -AllVersions -Force
Install the VCF.PowerCLI module using the command: Install-Module -Name VCF.PowerCLI
Verify that no conflicting VMware.VimAutomation modules remain: Get-Module -ListAvailable VMware.VimAutomation*
Get-Module -Name VCF.PowerCLI -ListAvailableRestart the PowerShell session.
Re-run the transition script and proceed with Option 2 to import the personality.