Skip to content

Instantly share code, notes, and snippets.

@kclinden
Created January 29, 2019 13:08
Show Gist options
  • Save kclinden/59b16f17f3b3eabe7f7b31db106551d1 to your computer and use it in GitHub Desktop.
Save kclinden/59b16f17f3b3eabe7f7b31db106551d1 to your computer and use it in GitHub Desktop.
vRO Action to execute a vm reconfig task
//Description: vRO Action to execute a vm reconfig task
//Inputs: [Array/Any] deviceConfigSpecs, [VC:VirtualMachine] vm
//Return Type: VC:Task
var configSpec = new VcVirtualMachineConfigSpec();
configSpec.deviceChange = deviceConfigSpecs;
return vm.reconfigVM_Task(configSpec);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment