Search code examples
azure-devopsazure-pipelinesrpa

Get console outputs from a script running inside VM on Pipeline


I have a pipeline with the steps below:

  • Create a Resource Group
  • Create a Virtual Machine from an image
  • Copy a Python project to VM created in the previous step

This Python project is an RPA (Robotic Process Automation). Now, I need to execute this Python project inside the VM and get the outputs from it to know what is going on, what the robot is doing. This robot read some sites and internal software.

Is there a way to execute a script inside a Virtual Machine from a Pipeline and get its console outputs? Any clue?

I saw this running on Jenkins.


Solution

  • If you are having Microsoft host the VM for you, there may be a way to "talk" to said VM as it is hosted on Microsoft's platform. However, the only way that I know of is to deploy an agent to the VM and select it as a resource target to run tasks on, such as copying your Python project and even running it.

    Have you attempted this yet?