Skip to content

Instantly share code, notes, and snippets.

@Dalmirog-zz
Created August 23, 2015 21:31
Show Gist options
  • Select an option

  • Save Dalmirog-zz/1628a732a55c3f1f79b4 to your computer and use it in GitHub Desktop.

Select an option

Save Dalmirog-zz/1628a732a55c3f1f79b4 to your computer and use it in GitHub Desktop.
Update Existing variable
#####Update existing variable#####
$variableset = Get-OctopusVariableSet -Projectname Powershell -ResourceOnly
#updating value of variable "OctopusPrintVariables" to "False"
$variableset.Variables | ?{$_.name -eq "OctopusPrintVariables"} | %{$_.value = "False"}
#update variable set on database
Update-OctopusResource -Resource $variableset -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment