Hi there!
We are trying to deploy an Azure Web App but we are getting a long file path error when the step tries to extract Octopus.Dependencies.AzureCLI.
The version 2.0.45 of the Octopus.Dependencies.AzureCLI tool has not been extracted, it will be extracted automatically.
Running this script in the Octopus Server security context (domain\serviceaccount)
Starting C:\windows\system32\WindowsPowershell\v1.0\PowerShell.exe in working directory ‘D:\OctopusInstances\XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXXX\Work\20190402214758-25685-767’ using ‘OEM United States’ encoding running as ‘domain\serviceaccount’ with the same environment variables as the launching process
Process C:\windows\system32\WindowsPowershell\v1.0\PowerShell.exe in D:\OctopusInstances\XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXXX\Work\20190402214758-25685-767 exited with code 0
The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
In this scenario, we are using our Octopus Server as a Worker to deploy an Azure Web App. And as you can see, the Octopus instance name is very long (I have masked the real instance name with X’s but the number of characters is still the same). Is it possible to change the Work folder path to reduce the length? Or are there any other ways to solve this?