Hi,
Im looking for a way to disable secure boot on VMs in vCloud by script using PowerCLI. I clone a default VM template that IT manages that has secure boot enabled, but since i'm running software that is not compatible I need to disable it after the VM has been generated. I'm generating a whole bunch of VMs which needs the same setup, so I was hoping to avoid having to do this manually...
This solution works for vCenter, but when trying a similar solution with a vCloud CIVM object it fails:
$tmpvmObj = Get-CIVM -Id "xxx"
$spec = New-Object VMware.Vim.VirtualMachineConfigSpec
$spec.Firmware = [VMware.Vim.GuestOsDescriptorFirmwareType]::bios
$tmpvmObj.ExtensionData.ReconfigureVm($spec)
Results in error:
Cannot find an overload for "ReconfigureVm" and the argument count: "1".
At line:1 char:1
+ $tmpvmObj.ExtensionData.ReconfigureVm($spec)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodCountCouldNotFindBest
So, is there any solution to do this by script automation for vCloud CIVM objects? Thanks in advance