This article explains what commands to run to find Power Automate flows that are at risk of being suspended.
Gets all flows at risk of suspension in that particular environment
Get-AdminFlowAtRiskOfSuspension -EnvironmentName 67aca0ed-17b7-41e1-86a8-b1e105e58ba1 | Export-Csv -Path 'C:\Bin\RiskofSuspensionUCCDefaultJune20.csv'
The flow only recognizes the environment name by object ID. Below are useful commands to know in order to fulfill the above command.
Returns a list of all environment id's
Get-AdminPowerAppEnvironment
Gets all flows
Get-AdminFlow | Export-Csv -Path 'C:\Bin\AllFlowsExported.csv'
Returns a list of flows that contain the word survey from a specific environment
Get-AdminFlow *survey* -EnvironmentName 67aca0ed-17b7-41e1-86a8-b1e105e58ba1
Delete a flow with powershell
Remove-AdminFlow -EnvironmentName 67aca0ed-17b7-41e1-86a8-b1e105e58ba1 -FlowName 1f3a6054-0534-462f-bcb3-72b285f1ebc5
Comments
0 comments
Please sign in to leave a comment.