Function: vRA Machine Reboot

by Simon Sparks · 3 April 2026

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

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

Filename: PluginVRAService.ts

Description: Orchestrator Function to Reboot a Machine

Public Function: MachineReboot

publicMachineReboot(objVraMachine:VraMachine):VraRequestTracker{

letobjVraHost:VraHost=objVraMachine.host;

letobjVraInfrastructureClient:VraInfrastructureClient=objVraHost.createInfrastructureClient();

// @ts-ignore
letobjVraMachineService:VraMachineService=objVraInfrastructureClient.createMachineService();

letobjVraRequestTracker:VraRequestTracker=objVraMachineService.reboot(objVraMachine.id);

returnobjVraRequestTracker;
}
TypeScript

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like