Orchestrator Function: vCenter Virtual Machine Snapshot Revert To

by Simon Sparks · 2 February 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: SnapshotRevertTo

publicSnapshotRevertTo(objVcVirtualMachine:VcVirtualMachine,strSnapshotName:string,blnSuppressPowerOn:boolean=true):VcTask{

letobjVcVirtualMachineSnapshot:VcVirtualMachineSnapshot=this.GetSnapshotByName(objVcVirtualMachine,strSnapshotName);

letobjVcHostSystem:VcHostSystem=null;

letobjVcTask:VcTask=objVcVirtualMachineSnapshot.revertToSnapshot_Task(objVcHostSystem,blnSuppressPowerOn);

returnobjVcTask;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like