web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Azure DevOps - Turn on...
Power Apps
Answered

Azure DevOps - Turn on the deployed flows

(1) ShareShare
ReportReport
Posted on by 45
Hello, 
 
I have small question, after deploying the solution from dev to prod I have problem with flows, always is putting off the flows on preprod and prod , it is possible to turn on the flows automatically after deploying the solution ?
 
 
Categories:
I have the same question (0)
  • Suggested answer
    wolenberg_ Profile Picture
    1,476 Super User 2026 Season 1 on at
    Hi @adm2kowalik , Yes, you can automatically turn on cloud flows after deploying a solution using Azure DevOps by scripting it with PowerShell and the Power Platform CLI or PowerShell modules.
     
    When you import a solution containing cloud flows into a new environment (like preprod or prod), flows are disabled by default to prevent unintended execution. This is a known behavior in Power Platform ALM (Application Lifecycle Management).
     
    When deploying solutions via Azure DevOps, cloud flows are disabled by default to prevent unintended execution. To enable them automatically:
    •  Use PowerShell with the Microsoft.PowerApps.Administration.PowerShell module to script flow activation.
    •  Alternatively, use the Power Platform CLI (pac) to enable flows post-deployment.
    •  Ensure connection references are correctly configured and owned.
    •  Include these steps as part of your post-deployment pipeline.
     
     

     Resources

      Dayman Dynamics – Enable Cloud Flows using PowerShell

      Microsoft Learn – Run pipelines in Power Platform

      Power Platform Community – Flows turned off after import


    If this helped or could help others in the community, feel free to give it a like or a kudo — it helps surface useful answers for everyone! 


     
  • Verified answer
    Vejai SH Profile Picture
    560 on at
     
    Yes, even we turn on “Activate flows after import” some flow will not. What we have done is we wrote a powershell script to get all the flow in a solution and enable it. 
     
    After deployment add a step to execute the powershell script to activate

    # Get all flows in a solution
    $flows = Get-AdminFlow -EnvironmentName "ProdEnvironmentID" | Where-Object { $_.DisplayName -like "*YourSolutionName*" }
    # Enable each flow
    foreach ($flow in $flows) {
        Enable-AdminFlow -EnvironmentName $flow.EnvironmentName -FlowName $flow.FlowName
    }
    
     
     
     
    Thanks,  
    Vejai SH   
     
    Please mark as answer if my suggestion helps you
  • adm2kowalik Profile Picture
    45 on at
    Hello @ 
     
    This somehow works but some flows are still disabled, I checked the connection reference and everything looks good, any ideas what could happened?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard