Create/Update of a VirtualMachineClass using DCLI with a --config-spec option fails with `unrecognized argument` error.
search cancel

Create/Update of a VirtualMachineClass using DCLI with a --config-spec option fails with `unrecognized argument` error.

book

Article ID: 311951

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

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

 

Environment

VMware vCenter Server 8.0.2

Resolution

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}}]}'