Azure VM and Python Azure functions?

Tom 1 Reputation point
2022-01-07T04:36:12.027+00:00

Hi!
I need to control GUI app inside a VM machine via Python (python app should be on that machine). Additionally, this Python app should communicate with other Azure function python api. I need also RDP for this guid app.

  1. Whats the best way to run python script on this vm? Is it possible to install python azure function on the vm machine so it can do the local stuff with this gui app and connect to my api?
  2. If not, then should i use RDP, install gui app, install python manually? Can i run scripts to automate just after vm is created?
  3. If my python app on a vm machine is waiting for local api commands from my python static web function, then whats the best to communicate (fastest)? Both flask apps and listen for requests or is there any azure a like communcation?
    1. How can i easy deploy python app on vm machine via azure if functions are not available for vm instance?

Thanks!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,461 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,346 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,446 Reputation points
    2022-01-10T05:23:09.81+00:00

    @Tom ,

    I will answer your question (1) which is related to functions.

    Yes, but you would have to run it as a container using one of the published functions images. Since the images are built to work out of the box on Azure, you might have to update some environment variables when launching the container.

    https://learn.microsoft.com/en-us/azure/azure-functions/functions-create-function-linux-custom-image?tabs=in-process%2Cbash%2Cazure-cli&pivots=programming-language-python

    I will ask one of my colleagues to answer the other VM related queries.

    0 comments No comments

  2. Tom 1 Reputation point
    2022-01-10T11:10:35.177+00:00

    Hello,
    I need to use windows machine, because of my gui exe.