I have a step used in ~200 Projects. I did not populate all the parameters and now I can no longer update all those Projects which use that step UNLESS I update the parameter values.
I have used the REST API to add a new step to a project but I want to find the offending step and create the properties which are missing for each one.
Found a code sample at OctopusDeploy-Api/UpdateInDeploymentProcesses.ps1 at master · OctopusDeploy/OctopusDeploy-Api · GitHub
which did this:
$steps[2].Actions.properties.add(“WebsiteName”,“xx”)
Method invocation failed because [System.Management.Automation.PSCustomObject] does not contain a method named ‘Add’.
At line:1 char:1
- $steps[2].Actions.properties.add(“WebsiteName”,“xx”)
-
+ CategoryInfo : InvalidOperation: (Add:String) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : MethodNotFound
Is there a way to do this within the REST API or using the Octopus Client?