Disaster recovery orchestration for the Enterprise (formerly Veeam Availability Orchestrator)
Post Reply
VirtualBen
Lurker
Posts: 2
Liked: never
Joined: Nov 17, 2012 5:20 pm
Full Name: Ben
Contact:

v13 - Custom Script to execute commands on VBR software appliance

Post by VirtualBen »

Hi, I am running VRO v13 and have a v13 VBR Software appliance.

Is there a way to run commands with a Custom Script against the VBR Software appliance outside of the built in job actions?

I have two challenges trying this.
1) The PowerShell for Custom Script runs under PowerShell 5.1, but VBR v13 requires PowerShell 7 so the commands are not recognised
2) How would I authenticate to the VBR server (it is not joined to a domain), could I call on credentials saved in VRO?
Alec King
VP, Product Management
Posts: 1640
Liked: 443 times
Joined: Jan 01, 2006 1:01 am
Location: Prague, CZ
Contact:

Re: v13 - Custom Script to execute commands on VBR software appliance

Post by Alec King »

Hello @VirtualBen,

You can run custom scripts in the VSA (VBR appliance on Linux) - however they work differently than on Windows VBR.
When you choose 'Run on Veeam Backup server' for a VRO custom script, and the VBR is Linux, then the script executes in a sandbox environment with isolated security context and various limitations. So although you don't have to authenticate with VSA admin credentials (this is handled by the VRO agent on the server), you will not be able to execute scripts that access components outside the sandbox such as -
  • file system
  • system configuration
  • system resources
  • network resources
  • system calls
You can of course run a script that leverages VBR PowerShell.

And as VRO and VBR moved to PowerShell 7 in the v13 VDP update, any script using PS 5.1 components it will fail. If your script fails with this issue, please raise a support case, we have had a few customers with this issue and it's usually a simple job to update your script to PS v7.

We will document in more detail the script-sandbox limitations in an upcoming release of the User Guide.

Hope that helps!
Alec King
Vice President, Product Management
Veeam Software
Post Reply

Who is online

Users browsing this forum: Google Adsense [Bot] and 31 guests