Power Community

Power Community

Check your environment for invalid Power Automate licenses

image

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:LocalLicensing. 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  -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).

This post was originally published on this site

- Advertisement -spot_img

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisement - Advertisement

Latest News

Adjusting the time zone in Power BI DAX – Quick Tip

Hi Folks, Here is the use case, I was actually pulling data from Model Driven App. As I was testing...

More Articles Like This

- Advertisement -spot_img