Search code examples
azure-devopsazure-pipelinesazure-devops-self-hosted-agent

Azure pipelines - running a self-hosted agent behind firewall


I am trying to set up a self-hosted agent behind a firewall. I tried to get the IPs or URLs to be whitelisted so the agent will be able to communicate with Azure DevOps services.

I tried this microsoft docs which has information on the URLs and IPs required to whitelist. It actually works except the DownloadPipelineArtifact task is failing. I guess I need to whitelist additional URLs.?! if yes, kindly point me to the official documentation. Thanks in advance.


Solution

  • By reference to this doc: Azure Artifacts, you need to add additional URL “https://*.visualstudio.com” into the whitelist.

    In addition, if you have set up any IP restriction on your self-hosted agent machine, you need to weekly check and update the Azure IP ranges from the weekly file into the whitelist.