Variable Scope and Rank via API or Octopus.Client

Hi,

I’d like to mimic the deployment of a service to a target machine, but on my local machine. This will allow me to ensure that all my configuration files are correctly updated and transformed, prior to the actual production deployment.

Do you have an example in C# or PowerShell of how I can use the API or Octopus.Client to pull in the correct variable based upon the scope ranking?

Thanks

Hi,

Thanks for reaching out. Unfortunately its not possible to mock such process by only using the API. There are too many moving pieces in place during the deployment that dictate such ranking, and It’ll be impossible to reproduce this outside of this context.

Let me know if there’s anything else I can help with.

Best regards,
Dalmiro

Hi Dalmiro,

I thought that might be the case, but wanted to check regardless.

Thank you