Can't install Tentacle 2.0 on Azure VM: Illegal characters in path

I have a VM in Azure running Windows Server 2012 previously running Tentacle 1.6 (now completely uninstalled), and now I try to install 2.0.

Home directory (configuration and logs): C:\ProgramData\Octopus
Default directory: c:\inetpub\www\

Error:

Creating empty configuration file: C:\ProgramData\Octopus\Tentacle\Tentacle.config
Saving instance: Tentacle
Octopus Deploy: Tentacle version 2.0.6.950

-------------------------------------------------------------------------------
A fatal exception occurred
System.ArgumentException: Illegal characters in path.
   at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
   at Octopus.Platform.Util.OctopusPhysicalFileSystem.GetFullPath(String relativeOrAbsoluteFilePath) in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Platform\Util\OctopusPhysicalFileSystem.cs:line 356
   at Octopus.Tentacle.Commands.ConfigureCommand.<>c__DisplayClassf.<>c__DisplayClass11.<.ctor>b__1() in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Tentacle\Commands\ConfigureCommand.cs:line 38
   at Octopus.Tentacle.Commands.ConfigureCommand.Start() in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Tentacle\Commands\ConfigureCommand.cs:line 90
   at Octopus.Shared.Startup.ConsoleHost.Run(Action`1 start, Action shutdown) in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Shared\Startup\ConsoleHost.cs:line 36
-------------------------------------------------------------------------------
Error: The previous command returned a non-zero exit code of: 1
Error: The command that failed was: "C:\Program Files (x86)\Octopus Tentacle 2.0\Agent\Tentacle.exe" configure --instance "Tentacle" --home "C:\ProgramData\Octopus\"
Deleted instance: Tentacle

Which path does contain an illegal character?? Thanks!

Thanks for getting in touch, this is a bug. I’ve raised the following issue for it: https://github.com/OctopusDeploy/Issues/issues/425

To work around this, either drop the trailing backslash from the home folder path, or double it, e.g. “C:\ProgramData\Octopus”

Regards,
Nick