We’re updating a certificate hash from CertifyTheWeb via a powershell script that uses Octopus.Client.dll. However, there are separate thumbprints depending on the environment. How do i update just one scope value for a variable. I can do it with just one:
A colleague recently added a sample script using the REST API rather than the Octopus.Client that has the ability to modify specific scoped values without affecting the others. Having a look through his Modify-Variable function should hopefully help point you in the right direction.
Thank you for this. I made some changes so that I could use an empty “spaces” name (we need to upgrade) and also changed Modify-Variable to support environments as an array when more than one environment is assigned. IE: