When using VCF PowerCLI, cmdlets from the VMware.VimAutomation.Vpc module are not available until the module is explicitly imported.
This happens because the module manifest for vpc4powercli does not export any cmdlets and is not available for autoloading.
To work around this issue, explicitly import the VMware.VimAutomation.Vpc module before running any cmdlets: -
Import-Module VMware.VimAutomation.Vpc
After importing, you can successfully run cmdlets such as: -
New-VPC -Name "TestVpc" -Description "Example VPC"
Example Without Import: -
PS C:\> New-VPC -Name "TestVpc"
It shows error: The term 'New-VPC' is not recognized as the name of a cmdlet.
After Import: -
PS C:\> Import-Module VMware.VimAutomation.Vpc
PS C:\> New-VPC -Name "TestVpc" -Description "Example VPC" <<<<<<<< Recognizes 'New-VPC' cmdlet and creates VPC with name 'TestVpc'