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:
-
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? -
Is there any built-in mechanism or API that Power Automate or Dataverse provides to indicate the execution status of Unattended flows?
-
Has anyone implemented a similar “VM idle detection for Power Automate flows” logic? If so, what worked best for you?
-
Are there better patterns or monitoring strategies to identify Unattended flow activity from outside the Power Platform (e.g., Azure Monitor, Log Analytics, etc)?
Thanks in advance! Any advice or shared experience is greatly appreciated.

Report
All responses (
Answers (