7.4

Table Of Contents
Table 151. PowerShell Script Custom Property Configuration Values (Continued)
Option Value
Script action Select an action based on where the PowerShell script is located.
n
If the PowerShell script is on a central server, use
executeExternalPowerShellScriptOnHostByName.
n
If the PowerShell script is uploaded into vRealize Orchestrator, use
executePowershellScriptFromResourceOnHostByName.
These script actions are example scripts. You can create specific actions for your
environment.
The Resources/Sample/vRA/PowerShell/countries.ps1 sample PowerShell
script is provided in the vRealize Orchestrator client as reference for use with the
executePowershellScriptFromResourceOnHostByName action.
Input parameters Configure the input parameters based on the selected action.
Define parameters
n
If you use executeExternalPowerShellScriptOnHostByName:
n
hostName. Name of the central server where the script is located.
n
externalPowershellScript. Path to the PowerShell file on the host.
n
Arguments. Parameters to pass to the script. You separate the arguments
with commas. For example, Argument1,Arguement2.
n
If you use executePowershellScriptFromResourceOnHostByName:
n
vRealize Orchestrator. Name of the vRealize Orchestrator instance you are
using as the host.
n
scriptResourcePath. Path to the PowerShell file on the host.
n
scriptResourceName. Path to the PowerShell file as an uploaded resource
in vRealize Orchestrator.
Blueprint Configuration
You can add a custom property to the blueprint Properties tab to associate the property with the overall
blueprint.
Database Query Custom Property Definition
You add a custom property to query a database when you want to retrieve values from that database to
populate the custom property on the request form. The database custom property uses a
vRealize Orchestrator action to run the query and retrieve the values.
The action is supported for the following databases:
n
Microsoft SQL Server
n
MySQL
n
Oracle
n
PostgreSQL
Limitations
All retrieved values are converted to strings.
Custom Properties Reference
VMware, Inc. 118