Deploy failing with error 'The variable '$OctopusDisableAzureCLI' cannot be retrieved because it has not been set.'

We recently upgraded from 2018.7.something (i forget) to 2018.8.7 and have one project that is running a AzurePowershell script that is failing with the error
The variable ‘$OctopusDisableAzureCLI’ cannot be retrieved because it has not been set.
We do not have this var set, as based on the docs, it looks like we shouldnt have to have it set. We dont have a need to disable it or override it for this (or any) project. We have other azure powershell scripts that work just fine so i dont know whats special with this one, Im assuming something is not being handled correctly.
thanks
tim

1 Like

Nevermind, we tracked it down to ‘Set-StrictMode -Version 3’ being in the script we were kicking off. Better error handling would be nice but then i know thats likely an impossible request when we hamstring the powershell feature set on you.
thanks
tim

1 Like