Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The PowerShell plugin provides a means to run any PowerShell cmdlet(s) or any existing PowerShell script(s). It also is compatible with Windows Azure PowerShell cmdlets, to configure your Azure Virtual Machine.

Refer to the FlexDeploy - Variables Guide for reference on available variables.

Supported Versions

  • PowerShell 5.0+

  • Azure PowerShell

Key Features

  • Can run any Windows PowerShell cmdlet(s)

  • Can run any Azure PowerShell cmdlet(s)

  • User-defined inputs/outputs allowed

  • Can run any PowerShell (.ps1) script(s)

Plugin Operations

Child pages (Children Display)

Custom Input and Output with plugin operations

You can invoke multiple PowerShell scripts if necessary or you can invoke PowerShell and then other plugin operation(s). For either situation, you may want to pass output from one invocation to other. This involves capturing output from one plugin invocation and passing it to other plugin. This applies to all types of Shell plugins. Let's first define a variable at workflow to capture output from plugin invocation.

Image Removedimage-20240329-232218.pngImage Added

Define user output on shell invocation, plugin output is stored in some workflow variable.

Image Removedimage-20240329-232241.pngImage Added

Plugin script code now can return the output.

Image Removedimage-20240329-232303.pngImage Added

At this point we have captured plugin output VERSION in varVersion variable. We can supply this to another plugin call using User Inputs.

Image Removedimage-20240329-232318.pngImage Added

And use in script code.

Image Removedimage-20240329-232327.pngImage Added