Adding steps to deployment process in Octopus

I am adding a deployment process to Octopus and I want to add a step template to a step.
I am adding a role which works where I use:

#Add a step to deployment process

$step = New-Object Octopus.Client.Model.DeploymentStepResource
$step.Name = $stepName
$step.Condition = [Octopus.Client.Model.DeploymentStepCondition]::Success
$step.Properties.Add("Octopus.Action.TargetRoles", $role)

Now I want to add a step template to the step but the below code is not working:

$step.Actions.Add("Octopus.Action.ActionTemplates", $stepTemplate)

Is there anywhere I can get a list of the Octopus.Action commands. The “Octopus.Action.ActionTemplates” does not seem to be valid.

I have an $action variable:

  $action = New-Object Octopus.Client.Model.DeploymentActionResource
  $action.ActionType = "Octopus.Script"

What other ActionTypes are available “Octopus. …?”


Hi Mike,

Thank you for contacting Octopus Support.

You may find a list of Action-level variables here:

If you have any more questions, don’t hesitate to ask. :slight_smile:


This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.