So, I am creating a build / deploy pipeline in azure Devops.
One issue I ran into is that I need to run a few SQL scripts every time a deploy is made. I am trying to do that through a Inline Powershell task.
The issue is that natively powershell does not recognize Invoke-Sqlcmd. So I had to install the module on the same script
I am doing that by doing
Install-Module -Name SqlServer -AllowClobber -Scope CurrentUser -Force
But any time it tries to run it is throwing me this error:
##[error]Exception calling "ShouldContinue" with "2" argument(s): "Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available."