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

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.

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.

Frequent Visitor

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.).   

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

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!. 

Dual Super User II
Dual Super User II

Hi @VikrantC


Have you had a look at this new connector? 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

Helpful resources

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group


Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (38,259)