Show all Octopus variables and their values in powershell?

I would like to use powershell to enumerate and dump all Octopus variables and their values to the log. How do you do this in powershell? If this is not practical then I would like to dump all path related Octopus variables to the console.

thanks

scott

Hi Scott,

Thanks for getting in touch! there is no way to trigger this with PowerShell but we have another way.There are two variables you can set within a project that when set to true will dump all variables in the log of the deployment.
They are:

OctopusPrintVariables
OctopusPrintEvaluatedVariables

Add these to your variables set to true and create a new release and all Octopus variables set and used throughout the deployment will show in the verbose logs.

Hope this helps!
Vanessa