Showing results for 
Search instead for 
Did you mean: 
New Member

MS Flow Automated Deployment



I created several flows in dev tenant. i want to move the flows to UAT enivorment using scripts ( automated deployment.).

According to my design, one workflow calls another calls using http url ( modular pattern). 


  •  Need to get the url of imported workflow using scripts.
  •  Need to setup mail connection and SharePoint connection using scripts. 

Is that possible in MS Flow ( Office 365 Product) using scripts or any automated approach ?

Kindly clarify.






Community Support
Community Support

Re: MS Flow Automated Deployment

Hi @Derrick_Jeevan,


Do you want to deploy Microsoft Flow automatically with scripts?


I afraid that it is impossible to deploy flows automatically with scripts in Microsoft Flow currently. If you want to deploy Microsoft Flows to different environment, you could consider manually export the flow and import it into different environment.


More details about exporting and importing Microsoft Flows across environments, please check the following article:

Export and import your flows across environments


In addition, if you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:


Best regards,


Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
New Member

Re: MS Flow Automated Deployment

Hi @v-xida-msft 


We have to resolve the connections and enable the flow after every solution import, if the solution contains flow. This is adding configuration overhead. It would be better if atleast connections and status of the flow persists on the environment after it is deployed first time.

New Member

Re: MS Flow Automated Deployment

I also want to deploy my flow to dev environment to UAT  environment using any Automated Deployment process (like script or Dev ops CI CD etc.).   

Super User
Super User

Re: MS Flow Automated Deployment

Hi @Vikrant12 you can do a lot of things with the PowerShell commandlets which are available in the PowerShell gallery. The module you need to install is Microsoft.PowerApps.Administration.PowerShell, however just be aware that you will need a Per User (premium) license applied to be able to use these commandlets.

Did my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!
If you liked my response, please consider giving it a thumbs up. THANKS!

Proud to be a Flownaut!

Community Leader: Black Country PowerApps & Flow User Group

Frequent Visitor

Re: MS Flow Automated Deployment

Hi @MattWeston365 thanks for your reply. I know lots of PowerShell commandlets are available in the PowerShell gallery. But I didn't find any of commands related to deployment of flow. If you give any example for automated deployment for flow that will be great for me thanks!. 

Helpful resources

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.


New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!


Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (6,292)