Azure Agent.Listener -Configure Hangs

馋奶兔 提交于 2019-12-11 15:19:28

问题


I have an asp.net core website that I'd like to deploy to an on-prem IIS server using devops (VSTS) pipeline.

The build pipeline works fine but I've hit a problem when configuring the release pipeline.

Process followed:

  1. Create new Release Pipeline - selected "IIS website deployment" as the template
  2. On the "Deployment group job" blade there's a drop-down that requires selection of a "Deployment group".
  3. Clicked the cogs icon to the right of this drop-down and created a new deployment group called "Integration-Dev". My understanding is that the generated PowerShell script must be run on each target server within the deployment group?
  4. Created a PAT token with the required deployment group access
  5. Logged onto the on-prem IIS server that I want to release the website to (the member of the new deployment group).
  6. Ran the PowerShell script from the "Deploment groups" devops page in an Admin elevated Powershell session
  7. Prompted to enter the PAT token
  8. Hangs for many minutes
  9. Following error message presented: An error occurred while sending the request. Failed to connect.

I am able to browse to the devops site from the target server within a browser session (https://companydomain.visualstudio.com)

Have I understood correctly that the agent needs to be installed on each target server? Any ideas why it's failing to connect? I guess it's some corporate proxy / firewall issue but I don't know how to access any diags or logs. I would have thought access to .visualstudio.com over 443 would be good enough?


回答1:


I encountered the same issue. Vanilla Azure Windows 2019 VM with latest patches. Powershell script downloads the agent zip, extracts it, but then just hangs when running Config.cmd "connecting to the server" I left it for 30 min before cancelling.

After spending a couple of hours on this I eventually tried to just run Config.cmd via normal Command Prompt (As Admin)

That worked for me and it registered as a service correctly.

I suppose there may be some default system policy around powershell and connectivity.

Thanks, BruceVS



来源:https://stackoverflow.com/questions/56080646/azure-agent-listener-configure-hangs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!