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?
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With