I’m trying to generate a project variable preview using the client in PowerShell. The purpose is (hopefully) to export the preview so it can be reviewed by the project owners outside of the UI. I’ve been playing with the ‘VariableSets.GetVariablePreview’ method with no success. Just keep bumping into a ‘Cannot find an overload for “GetVariablePreview” and the argument count’ error.
$ep = New-Object Octopus.Client.OctopusServerEndpoint ‘http://octpousurl.com’,‘MyAPIKey’
$repo = New-Object Octopus.Client.OctopusRepository $ep
$prjObj = $repo.Projects.FindByName(‘MyProj’)
It would be helpful if you could provide an example of how to do this via the client.