Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

It's possible run a attended ui flow on scheduled Azure VM?

I tried to run a attended ui flow on scheduled Azure VM but i get this error: "No unlocked user sessions found on the target machine. Cannot execute attended desktop flow"
This post say its posible but im not sure: Using Azure VM's to run UI Flows (RPA) -

I dont have permission to upload pitures, there is a ScreenShot: It's possible unlock user session with azure automation? - Microsoft Q&A




Accepted Solutions

If you are not operating the VM as a user, then you're basically violating Microsoft's attended RPA license terms. 

Page 14 "The bot must operate concurrently with the user on the same workstation"


Why don't you just get an unattended RPA license?

Was this helpful? Then give it a thumbs up and/or select it as the solution!

View solution in original post


I am having the same issue except with local desktop gateway instead of Azure VM. My gateway is in a Hyper-V VM. Same exact error despite trying all the tricks I can imagine.

Frequent Visitor

Did you guys find a solution?

I got mine working. The connector to the gateway requires your local user account's login credentials.

It's confusing because the gateway settings references some PBI (Power BI) something or other credential, but that is not what you use for the gateway connector in Power Automate. The PBI thing I am talking about is some pseudo-account-credential looking thing that has like PBISE or some such letter sequence in what would be the username. I was confused by this and thought it might be some auto generated login credential, like API keys. I even tried establishing the gateway connector using that thing, but that was not correct to do. You must use credentials of local user account where the gate way is installed.

Part of my problem is that Hyper-V Windows 10 virtual machines do not have a local account password for the default user account within the virtual machine. Or that default user account logs itself in anyway, so I was not sure how to find its password. So I made a second local user account within my VM and used its credentials for the PAD gateway connector in the Power Automate cloud flow run. I just log in as my second local user, then Power Automate and the gateway do the rest. Look out for the two PAD taskbar icons wherever you install the gateway and intend to run your cloud-triggered PAD flows. If you have the taskbar icons showing up, you are probably good to go on the desktop side of the equation. Then it's just a matter of using the local user account's login credentials to authenticate the PAD cloud action connector to your gateway. 

Ask me specific questions and maybe I can help you.

EDIT: That user account credential looking crap is NT Service\PBIEgwService (as in Power Business Intelligence Gateway Service), and you will see it referenced several times whenever you set up your gateway. DO NOT USE THAT TO AUTHENTICATE YOUR CONNECTOR - it won't work. That credential is, I'm guessing, what authorizes the gateway to do its bidding on your PC. Use the local user account like [Name of Computer]\[Username] e.g. My-PC\TurdFerguson. If you don't login with local credentials e.g. you login with your Microsoft account, you will need to make a local user account to set up your gateway and run cloud flows on it. Or I do not know of a workaround to do it without local user account credentials anyway. Ok thanks for coming to my TedTalk 🙋‍♂️

Lol, posting in these forums using Google Chrome on Windows 10, if you press WINDOWS key + period and select the "man raising hand" emoji, they convert it to "woman raising hand" + "male symbol" lmao!

Frequent Visitor

I'm using the local user but it doesn't work!!

Frequent Visitor

I will try this!
@HEATFreight do you think its will work with an scheduled Azure VM? Because when its start via Logic Apps i'm not sure if the user is logged in...

Maybe Azure requires unattended? ...which is a higher subscription level... Or to the extent that you are connected and logged in as a local user of the Azure VM (with gateway installed and connected to your account mind you...), you can probably run attended in that Azure VM. I'm not sure how that works as I am using Hyper-V and have never spun up an Azure VM. That is actually one thing I intend to try soon though, as I do not want to run this on my local physical machine forever. Running attended means you must be connected and logged into the VM, wherever it resides, which is a bit of a hurdle with a local VM since it uses up some of your hardware resources. Clearly that's not as big of a hurdle when it's just an Azure portal and not actually using your local resources. The next step up in functionality being unattended, where I am assuming the VM need only be powered on but not necessarily have a user logged in.

Eventually I plan to do all of that, but I tell you what... it was pretty easy to set all of this up in Hyper-V on my PC. You should try in Hyper-V first if you are able to, because maybe it's less complicated than deploying in Azure 🤷‍♂️

lol there's that emoji equivalence bug. female shrug+ male symbol = male shrug. i swear to god i typed a male shrug emoji there. so funny!

Frequent Visitor

On Azure VM its work when i logged in
If i automate the start of the VM doesnt work but flowje says in this post the automated VM work with attended and unatennded Flow Using Azure VM's to run UI Flows (RPA) -
I twitted them and he say me "the VM has a user session so you can run attended RPA flows"

So you got it working then?

Frequent Visitor

Yep i can run only when i logged in
But when i turn on the VM via Logic Apps or Azure Automation i cant run the attended ui flow. On the post flowje says they can do that with attended and unattended ui flow...

Resolver II
Resolver II

Attended flow requires the user account to be login before it will run.

Unattended flow requires a different license and user account must not be logged in.



Yeah you can't run unattended without upgrading to the higher subscription level. If you have access to Power Automate at all, you get attended desktop flows by default. Unattended is not available by default without paying for a higher subscription. Or that is my understanding.

Hello @dboetschjump !

I was wondering if you were able to get it working without manually logging in. 


I tried FlowJoe's method and I get the exact same error: "No unlocked user sessions found on the target machine. Cannot execute attended desktop flow". Yet, when FlowJoe responded to you he said "the VM has a user session so you can run attended RPA flows".


Hmmm.... what is the difference between the error message and FlowJoe's response? The word "unlocked". I'm thinking our problem has to do with the Azure Run As... will investigate further.


Keep 'em flowin'



Attended automation is meant to run with a user present, so the screen needs to be unlocked.

Was this helpful? Then give it a thumbs up and/or select it as the solution!

Yeah I understand that. But that would mean that FlowJoe's technique cannot work in attended mode. He states the contrary and I'm trying to understand why.

The blog post shows a configuration for unattended automation. Of course you should be able to RDP into the VM to run a flow manually in attended mode. 😉

Was this helpful? Then give it a thumbs up and/or select it as the solution!
Frequent Visitor

Thanks @CharlesS! I have the same doubt
@fraenK The blog says unattended and attended mode, maybe its a mistake. 

It's not a mistake, you can run both, but there is a different behavior, which is not mentioned in the blog.

Was this helpful? Then give it a thumbs up and/or select it as the solution!

Helpful resources


Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (1,974)