How to get the IP Address for Azure DevOps Hosted Agents to add to the white list

前端 未结 5 944
北恋
北恋 2020-12-16 16:21

Is there a way to the IP address range for the hosted machine running?

This is related to the Release Pipeline -> Hosted agent.

Issue: Getting access denied

5条回答
  •  盖世英雄少女心
    2020-12-16 16:55

    I have a step in a release that gets the Hosted Agent IP address in powershell with:

    Invoke-RestMethod http://ipinfo.io/json | Select -exp ip
    
    Hope that helps.

提交回复
热议问题