Error "'Invoke-VcfGetDomainCapabilitiesByDomainId' is not recognized as a name of a cmdlet, function, script file, or executable program." when transitioning from vLCM Baselines to vLCM Images in VMware Cloud Foundation 9.x
search cancel

Error "'Invoke-VcfGetDomainCapabilitiesByDomainId' is not recognized as a name of a cmdlet, function, script file, or executable program." when transitioning from vLCM Baselines to vLCM Images in VMware Cloud Foundation 9.x

book

Article ID: 431692

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

Environment

VMware Cloud Foundation 9.x

Cause

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.

Resolution

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.

  1. Open a PowerShell terminal as Administrator.

  2. Uninstall the existing VMware.PowerCLI module:
    Uninstall-Module -Name VMware.PowerCLI -AllVersions -Force

  3. Install the VCF.PowerCLI module using the command:
    Install-Module -Name VCF.PowerCLI

  4. Verify that no conflicting VMware.VimAutomation modules remain:
    Get-Module -ListAvailable VMware.VimAutomation*

  5. Verify if the VCF PowerCLI module is available on your system.
    Get-Module -Name VCF.PowerCLI -ListAvailable
  6. Restart the PowerShell session.

  7. Re-run the transition script and proceed with Option 2 to import the personality.

Additional Information

https://techdocs.broadcom.com/us/en/vmware-cis/vcf/vcf-9-0-and-later/9-0/deployment/upgrading-cloud-foundation/upgrade-the-management-domain-to-vmware-cloud-foundation-5-2/vlcm-baseline-to-vlcm-image-cluster-transition-/prerequisites-for-transitioning-to-vsphere-lifecycle-manager-images.html