How to check nework connectivity between azure devops pipeline to external IP address

Renuka Gutti 0 Reputation points
2023-06-01T12:53:06.35+00:00

Hi Team,

Is there any way to check the network connectivity between azure devops pipeline and external IP address. for example commands like traceroute.
I have read few answers that we cannot use this command. Is there any alternative? as we are trying to connect to a IP address which fails intermittently . So we want to check the network connectivity.

Thanks

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
41,392 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sedat SALMAN 14,145 Reputation points MVP
    2023-06-01T17:42:51.39+00:00

    you may use Command line v2 task

    https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/cmd-line-v2?view=azure-pipelines

    so you can ping the target you want (but as a note you need to open icmp ports at first)

    or you can use Powershell task and you can run powershell script to test the connectivity

    but for each resource it is better to create different tast to test the connectivity

    like you can test a rest api by using curl or powershell or telnet etc.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.