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: SnapshotRevertToCurrent
publicSnapshotRevertToCurrent(objVcVirtualMachine:VcVirtualMachine,blnSuppressPowerOn:boolean=true):VcTask{
letobjVcHostSystem:VcHostSystem=null;
letobjVcTask:VcTask=objVcVirtualMachine.revertToCurrentSnapshot_Task(objVcHostSystem,blnSuppressPowerOn);;
returnobjVcTask;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
