This article describes the unrecognized argument error and the workaround for dcli users trying to create/update virtualmachineclasses with a --config-spec argument in the VC 8.0 U2 release.
Symptoms:
Error message:
Failed while retrieving CLI command details: unrecognized arguments: --config-spec
VMware vCenter Server 8.0.2
8.0 Update 2b has the resolution for this issue.
Workaround:
The workaround is to use 'dcli +show-unreleased' to use the --config-spec option.
For example:
$ dcli +show-unreleased com vmware vcenter namespacemanagement virtualmachineclasses create --id my-nic-class --cpu-count 2 --memory-mb 2048 --config-spec '{"_typeName":"VirtualMachineConfigSpec","deviceChange":[{"_typeName":"VirtualDeviceConfigSpec","operation":"add","device":{"_typeName":"VirtualE1000","key":-100}}]}'