web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to detect if a Pow...
Power Automate
Suggested Answer

How to detect if a Power Automate Desktop Unattended flow is running on an Azure VM?

(2) ShareShare
ReportReport
Posted on by 123

Hi everyone,

 

I’m trying to optimize costs on Azure by automatically shutting down virtual machines when they’re idle — specifically, when no Unattended Power Automate Desktop (PAD) flows are running.

 

Here’s my setup:

 

  •  

    VMs run PAD Unattended flows triggered remotely (via cloud flows or scheduled triggers).


  •  

    I want to automatically detect when a VM is idle, meaning no PAD activity is currently taking place.


  •  

    Then I’ll safely shut it down using an Azure Automation Runbook or Logic App with a RunCommand action.



  •  
 

My questions are:

 

  1.  

    Which exact process(es) or service(s) are responsible for running a PAD Unattended flow? For example, I’ve seen PAD.Console.Host.exe — is this the most reliable one to check?


  2.  

    Is there any built-in mechanism or API that Power Automate or Dataverse provides to indicate the execution status of Unattended flows?


  3.  

    Has anyone implemented a similar “VM idle detection for Power Automate flows” logic? If so, what worked best for you?


  4.  

    Are there better patterns or monitoring strategies to identify Unattended flow activity from outside the Power Platform (e.g., Azure Monitor, Log Analytics, etc)?



  5.  
 

Thanks in advance! Any advice or shared experience is greatly appreciated.

Categories:
I have the same question (0)
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,136 Super User 2026 Season 1 on at
     
    For your first query - i think yes PAD.Console.Host.exe runs in unattended sessions
     
    for the second query - 
    i think flow session table in dataverse can help to get details of each flow runs - refer that https://poszytek.eu/en/microsoft-en/office-365-en/rpa-en/get-power-automate-desktop-runs-details/ to build a logic around this.
     
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard