microsoft / VSTSAgent.PowerShell

Tools for managing and automating your Azure DevOps Agents.
MIT License
29 stars 23 forks source link

PS module failing while trying to download the VSTS agent installer #17

Open Ashu6753 opened 4 years ago

Ashu6753 commented 4 years ago

I am trying to install the VSTS agent using the PS module on remote through through PowerShell on target machines task in the VSTS build pipeline. It is failing while trying to down the package. Need your help regarding fixing this issue

https://vstsagentpackage.azureedge.net/agent/2.155.1/vsts-agent-win-x64-2.155.1.zip Downloading https://vstsagentpackage.azureedge.net/agent/2.155.1/vsts-agent-win-x64-2.155.1.zip At line:1 char:1

jwittner commented 4 years ago

Hi! Looks like the issue may be with Start-BitsTransfer used to download the files. In other PS tooling we've moved away from this to use System.Net.WebClient and perhaps we need to do the same here.

Any interest in updating the related code to fix this since you'd have a perfect opportunity to test the fix?