Skip to main content
Question

error Requestbody

  • 30 September 2023
  • 2 replies
  • 33 views

hi all,

when i run the next script from commvault site i got next error

Restore-CVVirtualMachine : A parameter cannot be found that matches parameter name 'Requestbody'.
At line:1 char:61
+ ... irtualMachine -Name va-dummyVM2_DND2 -outofPlace -Requestbody $reques ...
+                                                      ~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) Restore-CVVirtualMachine], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Restore-CVVirtualMachine
 
script is here:

https://documentation.commvault.com/v11/essential/101870_restore_cvvirtualmachine.html

2 replies

Userlevel 1
Badge +3

Hi @liorkrispin,

 

Good day!

It is complaining about the request body where a named parameter is not found for the Out-Of-Place restore attempt.

Could you please ensure that the parameter's mentioned as per the below documentation is correct?

https://documentation.commvault.com/v11/essential/101870_restore_cvvirtualmachine.html

 

If everything is in place, try adding a double quotes in the below line and try once again,

Restore-CVVirtualMachine -Name “va-dummyVM2_DND2” -outofPlace -Requestbody $requestbody -OverwriteExisting

 

Thanks,

Naresh G

Badge +4

hi, some error

 

Restore-CVVirtualMachine : A parameter cannot be found that matches parameter name 'Requestbody'.
At line:24 char:63
+ ... tualMachine -Name "va-dummyVM2_DND2" -outofPlace -Requestbody $reques ...
+                                                      ~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Restore-CVVirtualMachine], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Restore-CVVirtualMachine

Reply