Issues updating tenant variables

What is the proper way to use the Octopus Client to update a tenant’s project and library variables? We have a working PowerShell script to retrieve the variables but not sure how to update them.

Thanks for your help!

Hi!

Thanks for getting in touch! I don’t have a PowerShell script handy but this code sample shows how we go about setting the values for Tenant variables in our Sampler application: https://github.com/OctopusDeploy/Sampler/blob/master/source/Sampler/Commands/MultiTenantSampleCommand.cs#L368

Feel free to clone that repository and wander through the code. You can even run it against a test instance of Octopus to see it working.

Hope that helps!
Mike

I’ll take a look at these.

Thanks Mike!