Showing results for 
Search instead for 
Did you mean: 

Check your environment for invalid Power Automate licenses

To fully understand what licensing you need for your users can be confusing and time-consuming. You can read more about when premium flows are turned off due to licensing issues and the Power Automate Licensing FAQ for details.


Fortunately, Microsoft has provided some PowerShell that allows admins to check their Power Platform environment for invalid Power Automate Licenses before it becomes an issue. You can run a check using PowerShell to see if you will have any issues.


Open PowerShell

First, you can open PowerShell on your machine (search for PowerShell), then open it as an administrator.


Browse to a location to save the output

Next, enter CD and then the path to where you want to export the results. For me, my path is C:\Local\Licensing. Click Enter to see your directory change in your PowerShell prompt.


Install the modules

We need to install the PowerShell modules required to run our command.

Copy the following into your PowerShell terminal and click Enter.

Install-Module -Name Microsoft.PowerApps.Administration.PowerShell -Force
Install-Module -Name Microsoft.PowerApps.PowerShell -AllowClobber -Force


Run Get-AdminFlowAtRiskOfSuspension

Now, we can run our command. The command will check if any Power Automate flows in this environment are at risk and download the CSV file you specify.


Please copy the following PowerShell, but change the Environment Name and, optionally, the Path before running it. I’d do this in Notepad first, then copy the results into the PowerShell terminal.


Find your Environment Name You can find your environment by visiting the Environments page in the Power Platform Admin Center. I always click into the environment and use the Environment ID provided on the summary screen.

Get-AdminFlowAtRiskOfSuspension -EnvironmentName <ENV_NAME> -ApiVersion '2016-11-01' | Export-Csv -Path suspensionList.csv -NoTypeInformation

When you run this command, it will open a window that asks you to authenticate to your SharePoint tenant.

After logging in, the results should be exported to a CSV file in the path you navigated earlier.


Read your results

If your CSV file is empty, you should be good to go. Remember to check each of your environments!

If you have results in your CSV, unfortunately, that means you have some invalid licenses to deal with.

Your CSV file will have all the details you need to identify the flow, why it was flagged, and recommendations to resolve the licensing issue.


How to resolve licensing issues

The best option is to read the FAQ provided by Microsoft.


If your Flow is created to support a Power App, you can Associate Your Flow, with your Power App. This assumes your flow runs in the app’s context and uses the same data sources for triggers or actions. Scheduled and automated cloud flows must be linked to the app through PowerShell, but others can be connected directly from the flow details page (see bottom-right corner).

About the Author
  • Experienced Consultant with a demonstrated history of working in the information technology and services industry. Skilled in Office 365, Azure, SharePoint Online, PowerShell, Nintex, K2, SharePoint Designer workflow automation, PowerApps, Microsoft Flow, PowerShell, Active Directory, Operating Systems, Networking, and JavaScript. Strong consulting professional with a Bachelor of Engineering (B.E.) focused in Information Technology from Mumbai University.
  • I am a Microsoft Business Applications MVP and a Senior Manager at EY. I am a technology enthusiast and problem solver. I work/speak/blog/Vlog on Microsoft technology, including Office 365, Power Apps, Power Automate, SharePoint, and Teams Etc. I am helping global clients on Power Platform adoption and empowering them with Power Platform possibilities, capabilities, and easiness. I am a leader of the Houston Power Platform User Group and Power Automate community superuser. I love traveling , exploring new places, and meeting people from different cultures.
  • Read more about me and my achievements at: MCT | SharePoint, Microsoft 365 and Power Platform Consultant | Contributor on SharePoint StackExchange, MSFT Techcommunity
  • Encodian Owner / Founder - Ex Microsoft Consulting Services - Architect / Developer - 20 years in SharePoint - PowerPlatform Fan
  • Founder of SKILLFUL SARDINE, a company focused on productivity and the Power Platform. You can find me on LinkedIn: and twitter I also write at, so if you want some Power Automate, SharePoint or Power Apps content I'm your guy 🙂
  • I am the Owner/Principal Architect at Don't Pa..Panic Consulting. I've been working in the information technology industry for over 30 years, and have played key roles in several enterprise SharePoint architectural design review, Intranet deployment, application development, and migration projects. I've been a Microsoft Most Valuable Professional (MVP) 15 consecutive years and am also a Microsoft Certified SharePoint Masters (MCSM) since 2013.
  • Big fan of Power Platform technologies and implemented many solutions.
  • Passionate #Programmer #SharePoint #SPFx #M365 #Power Platform| Microsoft MVP | SharePoint StackOverflow, Github, PnP contributor
  • Web site – Youtube channel -