I’m getting this error when trying execute the invoke-sqlcmd in the script console which running in the worker node .This is not happen when we execute directly from powershell in the same worker node. i guess there is the bug for octopus application.
Command from octopus
Invoke-sqlCmd : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Working fine when execute manually with powershell on the same worker node
Thanks in advance for your help.