Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 613
fds13 Avatar asked Nov 16 '25 04:11

fds13


1 Answers

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?

like image 147
Mike0684 Avatar answered Nov 18 '25 20:11

Mike0684



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!