Function: vRA Machine Power Off

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 Power Off a Machine

Public Function: MachinePowerOff

public MachinePowerOff(objVraMachine: VraMachine): VraRequestTracker {

    let objVraHost: VraHost = objVraMachine.host;

    let objVraInfrastructureClient: VraInfrastructureClient = objVraHost.createInfrastructureClient();

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

    let objVraRequestTracker: VraRequestTracker = objVraMachineService.powerOff(objVraMachine.id);

    return objVraRequestTracker;
}
TypeScript

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like