When running deployments I am receiving an error:
invoke-sqlcmd : The term 'invoke-sqlcmd' is not recognized as the name of a cmdlet, function, script file, or operable program
However, when run locally on the same server this executes in PowerShell no problem. I want to check and confirm what version of PowerShell executable is being used by Bamboo when deployments are run to ensure they are they same and rule out this being the issue.
I'm not a powershell expert but is invoke-sqlcmd available on the path for bamboo? Try using the full path to command to check.
I also found this stackoverflow thread that could be useful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.