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 / Unattended flow on AVD...
Power Automate
Unanswered

Unattended flow on AVD - Cannot create new session to execute unattended run

(0) ShareShare
ReportReport
Posted on by 93

Hi all,

 

I have a PAD flow which is connected to an Azure Virtual Desktop machine. The environment has the Unattended RPA add-on, and the machine is connected. Our AVD network and our physical devices are not domain joined. 

 

Every time I start the flow (via Power Automate) to start the PAD flow (unattended) on the AVD, it fails with reason "Cannot create new session to execute unattended run".  The PAD flow connection is set to "Direct to machine".

 

We have looked at everything, including the firewall, machine runtime, connection of the AVD; and we have even spun up a multi-session AVD to see if that would make any difference, and the answer is always the same... Cannot create new session to execute unattended run.

 

In addition, my laptop is an MMD device and I have tried setting the PAD flow's connection to this machine as well, but still the same error. I cannot see why I would need a Gateway, as I have no need to connect to any on-premise data. 

 

What is causing the issue? 

 

All thoughts/solutions/suggestions welcome.

 

Thanks

Phil

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    Hi @PhilGlew 

    Don't know if it is fully relevant to your issue but the troubleshooting tips on this link has something to do with cannot create new session messages.

     

    For another user here it was due to Duo login security.

     

    Most of the links talk about a gateway so not sure if that is needed in your case.

  • JamesP_MSFT Profile Picture
    Microsoft Employee on at

    @PhilGlew if the provided answer fixed your issue, please mark the thread as resolved.
    Thank you.

  • elaaboum Profile Picture
    Microsoft Employee on at

    Hi @PhilGlew , are you still facing that issue ? if yes, could please provide the run Id of the failing desktop flow ? (see screenshot below)!

     

    elaaboum_0-1651847041617.png

     

  • PhilGlew Profile Picture
    93 on at

    Have sent to you as PM @elaaboum  - Thanks

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