Goal
To learn how to correctly implement an Environment Feature Flag for your Octopus Server in Windows.
Prerequisites
Sometimes, support will need you to enable a specific environment feature flag on your Octopus Server to correct an issue. Note that these steps work for most versions of Windows. If they differ for whatever reason, please reach out for further assistance.
Another key thing to keep in mind is that you need to create this on your system running the Octopus Server, not through the Octopus Server itself.
Steps
-
You'll need to open the Power User Tasks Menu, which can be opened by either pressing the Windows Button + X.
-
Click on the System Menu and in System > About, there's an Advanced system settings link, click on that. From there, you'll need to hit the Advanced tab, and the Environment Variables will be located towards the bottom of that window.
Alternatively, on Windows 10 and 11, you can do the following:
-
Locate “sysdm.cpl” in your Windows search bar and click on that.
-
You'll need to click on the Advance tab, then Environment Variables.
Finally, all you need to do is create the environment variable itself.
-
Go to system variables, click on create, and input the feature flag we instructed you to create.
-
Once that's all done, restart the server. This part is needed to the Octopus Server recognizes the environment variable.
Verify
You should be able to confirm these were implemented properly after the restart by opening a command prompt and either entering echo %PATH% or echo $Env:%PATH%. Do note, though, that the syntax differs between the command prompt and PowerShell, so if you don't see it initially, confirm which one you're using and use the appropriate syntax for the query you're running.