Hello,
I am trying to run a Desktop flow set up on a Windows 365 virtual PC instance (I'll call the VM itself "W365" in this post) with a Machine connection setup.
First, I'll say what DOES work. When I have the W365 connected via a remote desktop window, the whole thing works great. The cloud flow triggers the desktop flow, and in my remote desktop window, I can see the UI start to automate. Everything works great. In this scenario, I'd be running the "Attended" option.
The problem I'm having is that my whole goal was to schedule a recurring run at 1 AM every day, so I will not be directly connected to my W365 instance when it runs. My laptop will be turned off. I assumed this would need to be "Unattended."
When I set this up, and the cloud flow runs at 1 AM (or whenever I'm manually testing without the Remote Desktop connected), the flow will fail to say, "There is a user session on the target machine" (while this is running in "Unattended" mode).
That made sense to me if the W365 instance behaved in a way where maybe it was "on" even though I wasn't connected. I'm not that sure about how Windows 365 VMs are configured. The thing that baffles me is that I then tried to run in "Attended" mode (again without the remote desktop connected), and I then got the complete opposite failure that says, "No unlocked user sessions found on the target machine.".
To test this further, I even created a "Try / Catch" setup where it would just try both Unattended and Attended immediately in sequence, thinking maybe I'd "wake up" a session or something strange. Doing this, I get both completely contradicting errors in a row. In the same flow, it has two errors. One says, "There's a user session..." The next action immediately gets "No unlocked user sessions found...".

Any help would be greatly appreciated!!