Access graylog api from azure devops build pipelines using powershel

Hi Guys,

I am trying to access graylog API from PowerShell which is working fine.
But when I run the same PowerShell using my azure build pipeline it’s giving me an error

Error Posting to : System.Net.WebException: Unable to connect to the remote server —> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
— End of inner exception stack trace —
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()

Check your Azure outside firewall, or firewall on graylog if not blocking connection.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.