Orchestrator Function: vCenter Virtual Machine Reconfigure For CoreOS

by Simon Sparks · 5 January 2026

To use this function add it to the class library file named vCenterServerService.ts

GitHub Repository: https://github.com/SimonSparksUK/Orchestrator

Filename: vCenterServerService.ts

Function: VcVirtualMachineReconfigureForCoreOS

publicVcVirtualMachineReconfigureForCoreOS(objVcVirtualMachine:VcVirtualMachine,strNodeIgnition:string):void{

letobjVcVAppPropertyInfo1:VcVAppPropertyInfo=this.VcVAppPropertyInfoCreate(0,"guestinfo.ignition.config.data",strNodeIgnition);
letobjVcVAppPropertyInfo2:VcVAppPropertyInfo=this.VcVAppPropertyInfoCreate(1,"guestinfo.ignition.config.data.encoding","base64");

letobjVcVAppPropertySpec1:VcVAppPropertySpec=newVcVAppPropertySpec();
objVcVAppPropertySpec1.operation=VcArrayUpdateOperation.add;
objVcVAppPropertySpec1.info=objVcVAppPropertyInfo1;

letobjVcVAppPropertySpec2:VcVAppPropertySpec=newVcVAppPropertySpec();
objVcVAppPropertySpec2.operation=VcArrayUpdateOperation.add;
objVcVAppPropertySpec2.info=objVcVAppPropertyInfo2;

letarrVcVAppPropertySpec:VcVAppPropertySpec[]= [];
arrVcVAppPropertySpec.push(objVcVAppPropertySpec1);
arrVcVAppPropertySpec.push(objVcVAppPropertySpec2);

letobjVcVmConfigSpec:VcVmConfigSpec=newVcVmConfigSpec();
objVcVmConfigSpec.property=arrVcVAppPropertySpec;

this.VcVirtualMachineReconfigureVAppConfig(objVcVirtualMachine,objVcVmConfigSpec);
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like