azure-devopsdevops

AzureDevops Deployment Group won't run on Windows Server 2019


Hi I have a new on prem server DELLEMC and I'm trying to run the deployment group registration script but the script won't run and after a while this error will appear "DownloadFile" with "2" argument(s): "

I also refer to this link for help but it didn't work https://github.com/MicrosoftDocs/azure-devops-docs/issues/263

enter image description here


Solution

  • AzureDevops Deployment Group won't run on Windows Server 2019

    According to the error message:

    Exception calling "DownloadFile" with "2" argument(s): "The operation has timed out." 
    

    It seems there is something wrong to download the agent, please try it again. Note, make sure the network is fast and stable. If this issue still exists, please do the following steps:

    1. Download the agent bits from here and select the v2.162.0 or above . User can download it from other machine and copy that to this machine if the download is failing because of network issue.

    2. Extract the zip in some folder.

    3. Open PowerShell admin command prompt and go to the folder

    4. Run the below PowerShell script as an administrator:

      .\config.cmd --deploymentgroup --deploymentgroupname "{deploymentGroupName}" --agent $env:COMPUTERNAME --runasservice --work '_work' --url 'https://iam-costco.visualstudio.com/' --projectname '{ProjectName}'
      

    You could check this thread for some more details.