7.1
Table Of Contents
- Life Cycle Extensibility
- Contents
- Life Cycle Extensibility
- Machine Extensibility Overview
- Extending Machine Lifecycles By Using vRealize Orchestrator
- Configuring Workflow Subscriptions to Extend vRealize Automation
- Event Topics Provided with vRealize Automation
- Workflow Subscriptions and Event Broker Terminology
- Blockable and Replyable Event Topics
- Best Practices for Creating vRealize Orchestrator Workflows for Workflow Subscriptions
- Workflow Subscription Settings
- Working with Provisioning and Life Cycle Workflow Subscriptions
- Configuring vRealize Orchestrator Workflows for Provisioning and Life Cycle Workflows
- Workflow Subscription Life Cycle State Definitions
- Configuring the Timeout Values for States and Events
- Configuring the Error Behavior for States and Events
- Scenario: Take a Post-Provisioning Snapshot of a Virtual Machine
- Working with Approval Workflow Subscriptions
- Troubleshooting Workflow Subscriptions
- Troubleshooting vRealize Orchestrator Workflows That Do Not Start
- Troubleshooting Provisioning Requests That Take Too Much Time
- Troubleshooting a vRealize Orchestrator Workflow That Does Not Run for an Approval Request
- Troubleshooting a Rejected Approval Request That Should Be Approved
- Troubleshooting a Rejected Approval Request
- Extending Machine Life Cycles By Using vRealize Automation Designer
- Extending Machine Life Cycles By Using vRealize Automation Designer Checklist
- Installing and Configuring vRealize Automation Designer
- Customizing IaaS Workflows By Using vRealize Automation Designer
- Workflows and Distributed Execution Management
- CloudUtil Command Reference
- vRealize Automation Workflow Activity Reference
InvokePowerShell
Executes a PowerShell command.
Table 8‑27. InvokePowerShell Activity Input Parameters
Argument Type Description
CommandText String Command to execute.
Arguments IEnumerable<string> (Optional) Arguments to the command.
Input IEnumerable (Optional) The input pipeline.
IsScript bool (Optional) Indicates whether CommandText is a script. Default is
False.
This option is only available in the Properties pane and not in
the Designer pane.
Parameters Collection (Optional) Collection of name-value pairs passed as parameters
to the PowerShell script.
This option is only available in the Properties pane and not in
the Designer pane.
PowerShellVariables Collection (Optional) Variables copied into the PowerShell runtime.
This option is only available in the Properties pane and not in
the Designer pane.
PSModules IEnumerable<string> (Optional) Modules loaded into the PowerShell runtime during
command execution.
This option is only available in the Properties pane and not in
the Designer pane.
Runspace Runspace (Optional) Creating a PowerShell runspace and supplying it to
this argument enables you to reuse the same runspace in
multiple PowerShell invocations, which may result in
performance improvements.
This option is only available in the Properties pane and not in
the Designer pane.
Table 8‑28. InvokePowerShell Activity Output Parameters
Argument Type Description
Output Collection<PSObject> Output of command if any. Throws exception on error.
Errors Collection<ErrorRecord> Errors resulting from execution if any.
If you receive the error message Type PSObject is not defined in the vRealize Automation Designer
console when you are dealing with the output of ExecutePowerShellScript, perform the following
steps:
1 Click Imports in the lower left corner of the Designer pane.
2 Select the System.Management.Automation assembly.
Life Cycle Extensibility
VMware, Inc. 100