Using Variable set variable in Step Template

I seem to be having an issue trying to use a variable from a variable set in a step template.

I have a variable set called “Service Settings”, and a variable in there called “ServiceUsername”.
Then I have a step template called “Instance Service” which attempts to use this variable as the username to run the service as, using TopShelf in a custom PostDeploy script.

Then the project process implements the step template, and includes the variable set. However that variable doesn’t seem to be available.

Is there a workaround for this? Or should it work?

Hi Sam,

Thanks for getting in touch! This should work. To try and troubleshoot this could you do the following:
Can you please add the following two variables to your project OctopusPrintEvaluatedVariables and OctopusPrintVariables and set them to true.
Then create a new release and deploy it, and grab the full deployment log for us:

Feel free to set the thread to private or mask any sensitive variables.