cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jmct12345
Frequent Visitor

Lag to run flow on VM

I built a very simple Power App (1 input field) that then triggers a web flow.  That web flow triggers a Desktop flow that runs on a VM.   

 

All the flow does is pass a search term from power apps, launches google on the VM and searches for the term.  Obviously not the production case in mind, just a POC to make sure all my connections are working.  

 

The problem I have is when I run, it takes almost 1 minute to run.  The VM is up and waiting (I am in attended mode).   

 

If I just run the desktop flow it takes about 5 seconds.   

 

Is there any way to reduce the lag of those steps?   Eventually I want the production case to run in unattended mode.  Would the performance between Attended and Unattended be similar?  

 

 

5 REPLIES 5
Henrik_M
Super User
Super User

That's just how long it takes for the command to reach the machine, log on, execute the desktop flow, log off, and send outputs to the cloud flow.

I think the only way to reduce the lag is to wait patiently and hope Microsoft does something about it. Right now, the long delay is OK for long desktop flow, but insanely inefficient for small queue-based flows. I would love to hear @Stephen's thoughts on the matter. 

PetrosF-MSFT
Microsoft
Microsoft

Hi @jmct12345,

Try to create your flows in an environment that's in the region closest to your VM location. An environment is bound to a geographic location, and when the datacenters that host your environment are closer to the machine that's accessing the information, you're likely to see better performance. 

jmct12345
Frequent Visitor

Thank you both.  I currently have the VM hosted in US East (I am in NY), so I think its close.  Its a bit underpowered (didn't want high cost during POC), I may try a more powerful VM to see if it responds faster.   

 

Otherwise, that may be what it is which will not work for my needs.   I hope MS can reduce that lag, its really a killer for many use cases.  

Etignor1
Helper II
Helper II

I feel your pain.  I set up a flow to open my gmail on Chrome and send myself an email.  Works fine on my laptop. Took 4 to 5 times as long to run it in attended and unattended mode on the Azure vm.  Useless!

rbovensi
New Member

Hitting the same problem, need to run desktop flows,but getting 1-2 minute delay. I have seen delays up to 10 minutes so far all running the same flow on the same desktop.  Seems very inefficient based that this was built on Winautomation.  And am transferring back to that for the speed.  Plus has less bugs running websites the Power Automate.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Top Solution Authors
Top Kudoed Authors
Users online (3,634)