To get a list of all flows and their respective license plans in Microsoft Power Automate, you can use the Power Platform Admin Center and PowerShell.
### Using the Power Platform Admin Center
1. **Sign in to Power Platform Admin Center**: Go to [Power Platform Admin Center](https://admin.powerplatform.microsoft.com) and sign in with your administrator credentials.
2. **Navigate to the Environment**: Select the environment where your flows are located.
3. **Flows Management**: Under the "Resources" section, select "Flows".
4. **Export Flow Details**: Here, you can see the list of flows. Unfortunately, the Power Platform Admin Center does not directly show the license type associated with each flow. You might need to export the list and correlate it manually or use PowerShell for more detailed information.
### Using PowerShell
To get detailed information about flows and their license types, you can use the `PowerPlatform` PowerShell module. Here’s how to do it:
1. **Install the PowerShell Module**: Open PowerShell and install the necessary module if you haven't already:
```powershell
Install-Module -Name Microsoft.PowerPlatform.Cds.Client -AllowClobber -Force
Install-Module -Name Microsoft.PowerApps.Administration.PowerShell -Force -AllowClobber
Install-Module -Name Microsoft.PowerApps.PowerShell -Force -AllowClobber
```
2. **Sign In**: Connect to your Power Platform environment:
```powershell
Add-PowerAppsAccount
```
3. **List All Flows**: Get a list of all flows in your environment:
```powershell
Get-AdminFlow
```
4. **Get Detailed Flow Information**: For each flow, get detailed information, including the license type:
```powershell
$flows = Get-AdminFlow
foreach ($flow in $flows) {
$details = Get-AdminFlow -EnvironmentName $flow.EnvironmentName -FlowName $flow.FlowName
Write-Output $details
}
```
### Correlating License Types
To specifically find out the license type for each flow, including the "per-flow" license, you might need to examine the flow's properties in detail. Unfortunately, the direct property for license type isn't exposed clearly via PowerShell as of now, but you can look into the environment capacity and licensing details through the admin center to cross-check the number of licenses assigned.
### Troubleshooting License Availability
Given your concern about the discrepancy in available "per-flow" licenses, here are a few troubleshooting steps:
1. **Double-Check Manual Records**: Verify that your manual records of assigned licenses are accurate and up-to-date.
2. **Check Other Users**: Ensure that other users in your environment haven’t assigned additional "per-flow" licenses without your knowledge.
3. **Environment Review**: Review all flows in the environment, including those created by other admins or users, to ensure no flows are mistakenly using "per-flow" licenses.
4. **Contact Microsoft Support**: If you still can't reconcile the discrepancy, consider reaching out to Microsoft support for assistance. They can help verify the licenses' assignment and usage.
By following these steps, you should be able to identify the flows using "per-flow" licenses and resolve the issue with license availability in your Power Automate environment.