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: SnapshotDelete
public SnapshotDelete(objVcVirtualMachine: VcVirtualMachine, strSnapshotName: string, blnRemoveChildSnapshots: boolean = true, blnSuppressPowerOn: boolean = true): VcTask {
let objVcVirtualMachineSnapshot: VcVirtualMachineSnapshot = this.GetSnapshotByName(objVcVirtualMachine, strSnapshotName);
let objVcTask: VcTask = objVcVirtualMachineSnapshot.removeSnapshot_Task(blnRemoveChildSnapshots, blnSuppressPowerOn);
return objVcTask;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
