PowerShell cmdlets

Note

These release notes describe functionality that may not have been released yet. To see when this functionality is planned to release, please review Summary of what’s new. Delivery timelines and projected functionality may change or may not ship (see Microsoft policy).

Programmatically accessing Microsoft Flow, including the underlying administrative capabilities, has been a key request from many customers. As Microsoft Flow adoption increases and subsequently the number of environments, providing automation has been an important capability to deliver for our customers.

As part of our investments to support General Data Protection Regulation (GDPR) data subject rights (DSR) requests, the Microsoft Flow and PowerApps teams released a set of PowerShell cmdlets. These cmdlets provide value beyond GDPR data subject rights requests and also allow users and tenant administrators to automate many application lifecycle management (ALM) and administrative tasks.

Download the PowerShell cmdlets here. These cmdlets provide some of the following capabilities:

User (maker) capabilities

  • Read environments
  • Read, update, and delete a flow
  • Read, update, and delete flow permissions
  • Read and respond to flow approvals
  • Read and delete connections
  • Read, update, and delete connection permissions
  • Read and delete a custom connector
  • Read, update, and delete custom connector permissions

Tenant administrator capabilities

  • Read and delete environments
  • Read, update, and delete environment permissions (does not work in environment with Common Data Service for Apps)
  • Read, update, and delete flows
  • Read and delete connections
  • Read, update, and delete connection permissions
  • Read and delete custom connectors
  • Read, update, and delete custom connector permissions
  • Read and delete Microsoft Flow user details settings
  • Create, read, update, and delete data loss prevention policies for your organization

For more details and examples of how to call these PowerShell cmdlets, refer to the blog post PowerShell Cmdlets for PowerApps and Flow creators and administrators.