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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get-AdminFlow doesn't ...
Power Automate
Unanswered

Get-AdminFlow doesn't return anything

(1) ShareShare
ReportReport
Posted on by 4
I'm trying to run the Get-AdminFlow command on PowerShell and it doesn't return anything.
 
I've installed the latest "PowerShell cmdlets for Power Apps", used the command Add-PowerAppsAccount to login to my admin account an tried to run Get-AdminFlow and it doesn't work.
 
it thinks for a while but gives me nothing on the terminal.
 
I'm able to get a specific flow (if I have the flowId) but I'm trying to restore a deleted flow and I need to find the flowId first.
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,181 Most Valuable Professional on at
    Get-AdminFlow doesn't return anything
    Can you try the below instead?
    Get-AdminFlow -EnvironmentName <yourenvironmentid> -IncludeDeleted $true
    Below are a couple of other examples which you can try:
     
    Alternatively, you could try the CLI for Microsoft 365 module. This one does require the creation of your own app registration in Entra Id.
  • RafaelGomes Profile Picture
    4 on at
    Get-AdminFlow doesn't return anything
    On the link you've sent, it says that Get-AdminFlow returns all flow, which is not happening.
     
     
    The command you suggested also returns nothing
  • Expiscornovus Profile Picture
    33,181 Most Valuable Professional on at
    Get-AdminFlow doesn't return anything
    That is strange. I would first check if your module has installed properly. 
     
    Like you mentioned earlier, you are using the 2.0.200 version of the Microsoft.PowerApps.Administration.PowerShell module, correct?
     
    You don't have other versions installed side-by-side for example?
     
     
    And you mentioned earlier that you had an admin account. Just to double check you mean you have a Global Admin or Environment Admin?
     
    I have tested with the last version of the module. That cmdlet should still work properly, I was unable to reproduce your issue. Below is a test example.
     
     
     
  • AF-13011409-0 Profile Picture
    2 on at
    Get-AdminFlow doesn't return anything
    I know this is about a year and a half too late, but I finally got an answer from Microsoft regarding this when I encountered the same issue about two years ago.
     
    As you noted above, before you can use the `Get-AdminFlow` command, you first need to run `Add-PowerAppsAccount` command to first log in with the admin account. What the MS documentation doesn't state, is that the console window where you run these two commands have to also be running as the admin account. E.g. you have to use the "Run as different user", or take advantage of the "runas.exe" command to first open a shell as the admin account. The various other MS PowerShell modules which require logging in don't have a similar requirement. (E.g. `Connect-SPOnline`, `Connect-MicrosoftTeams`, etc.)  
     
    I pointed out to support engineer that finally figured this out noted that fixing this inconsistent behavior of `Add-PowerAppsAccount`, but apparently it's not priority of the product teamto fix it.
     
    And then after that, it also get interesting -- but at least it is now documented. If you are global admin, then `Get-AdminFlow` shows all flows from all environments. If you are only Power Platform admin, it only shows flows from environments for which you also happen to have admin rights to.
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard