To use this function add it to the class library file named vCloudService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: vCloudService.ts
Description: Orchestrator Function to add memory to a vCloud virtual machine
Function VclVMAddMemory
publicVclVMAddMemory(objVclVM:VclVM,intMemorySize:number):void{
objVclVM.updateInternalState();
letobjVclVirtualMemory:VclVirtualMemory=objVclVM.getMemory();
objVclVirtualMemory.memorySize=intMemorySize;
letobjVclTask:VclTask=objVclVM.updateMemory(objVclVirtualMemory);
this.WaitForVclTask(objVclTask,1);
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
