How To Connect To Microsoft Flow Using PowerShell

In this blog, you will see how to connect with Microsoft Flow using PowerShell.

Microsoft has released a preview version of PowerShell cmdlets for PowerApps, which can also be used to manage your flows. In this blog, you will see how to connect to Microsoft Flow using PowerShell to manage your flows.

Download the PowerShell scripts file from here. Extract the zip files.

Open PowerShell window and run the following command.

  1. >cd "<folderlocation>"  

<folderlocation> - where the unzipped PowerShell Script files are available

Run the following command to import the modules.

  1. Import-Module .\Microsoft.PowerApps.Administration.PowerShell.psm1 -Force  
  2. Import-Module .\Microsoft.PowerApps.PowerShell.psm1 -Force  

Run the following command to manually unblock the PowerShell files. Refer the known issue.

  1. dir . | Unblock-File  

Run the following command to connect. Enter the credentials in the login popup window.

  1. Add-PowerAppsAccount  

Run the following command to get all the Flows created or shared with you.

  1. Get-Flow  

 

Reference

https://docs.microsoft.com/en-us/powerapps/administrator/powerapps-powershell

Thus in this blog, you saw how to connect to Microsoft Flow using PowerShell.