Update snapshot variable in one step to be used in next step

Hi there,

I have a initial step, where I want to create a VM Name and Resourcegroup name, based on random text.
This should then be updated as variables and used in the next step within the same release, since the variables are sent to a deployment script in a package to create a vm on azure.
I have looked at the https://github.com/OctopusDeploy/OctopusDeploy-Api/blob/master/REST/PowerShell/Releases/Release_UpdateVariables.ps1 but it doesn’t seem to update the variable in the current release.
Can this be done at all?

Hi @cbmdk,

Thanks for getting in touch! I think what you need here is our Output Variable feature.

This lets you create a variable in your deployment and reference it in a later step.

There are also some System Variables in each deployment which can be called on a per-step basis.

Does this help you achieve what you are after here?

Let me know if this is not exactly what you were after. :slight_smile:

Best regards,
Daniel

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.