bseltz-cohesity / scripts

Cohesity REST API examples in PowerShell and Python
Apache License 2.0
104 stars 41 forks source link

powershell/recoverVMs/recoverVMs.ps1 #155

Closed Sheeba86 closed 6 months ago

Sheeba86 commented 6 months ago

i'm trying to vm using protectiongroup and using following parameters vcentername, datacenter, datastorename and networkname but script is exiting with hostname required. could you please check it and can we make this as optional?

bseltz-cohesity commented 6 months ago

I can not make it optional, It's mandatory in the API. Specify the name of the HA cluster if your ESXi hosts are clustered.