Created
August 23, 2015 21:31
-
-
Save Dalmirog-zz/1628a732a55c3f1f79b4 to your computer and use it in GitHub Desktop.
Update Existing variable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #####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