Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

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 Team
Community Support Team

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.
Level: Power Up

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.

Level: Power Up

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!

Proud to be a Flownaut!

Community Leader: Black Country PowerApps & Flow User Group

Level: Powered On

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


Power Automate Community User Group Member Badge

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


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,983)