Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remote desktop (RDP) to hosted agents of Azure Pipelines

I have a Azure Pipelines (previously known as VSTS CI/CD pipelines) definition using Hosted Agent. There are cases when the build works locally but fails on hosted agent due to environment configuration differences. It will greatly improve troubleshooting experience if I can remote desktop to the Hosted Agent assigned to my job, like what AppVeyor does. Is it possible for Azure Pipelines as well?

like image 769
Zhiliang Avatar asked Jul 06 '17 02:07

Zhiliang


2 Answers

I don't think that at this moment, you can RDP into the Hosted Agent.

The best you can do is to use powershell to dump all the configuration that is needed and the debug with that info on hand.

like image 134
Harshil Lodhi Avatar answered Oct 12 '22 00:10

Harshil Lodhi


No, you can’t remote desktop to hosted agent, also the hosted agent may different for different builds/release.

You can refer to this article to check hosted agent software: Hosted agents

You also can setup a private build agent for the build: Deploy an agent on Windows

like image 32
starian chen-MSFT Avatar answered Oct 12 '22 01:10

starian chen-MSFT