Skip to main content

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

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


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