The same problem is observed for UpdateVM() method as well.
vm.GetResource().name = vmName; vm.GetResource().Description = "VM created through automation"; //vm.Resource.name = vmName; task = vm.UpdateVM(vm.GetResource()); <<<--- throwing the same exception. task.WaitForTask(timeout);