Skip to main content
Question

error Requestbody


Forum|alt.badge.img+4

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

Naresh G
Vaulter
Forum|alt.badge.img+3
  • Vaulter
  • 16 replies
  • October 2, 2023

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


Forum|alt.badge.img+4
  • Author
  • Bit
  • 7 replies
  • October 8, 2023

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings