Showing results for 
Search instead for 
Did you mean: 
Advocate III
Advocate III

Deactivated flows and no connection after deployment through CICD

Hi all, 


Here's the situation, we have Dev, Test and Prod environments. The developer is currently the owner of the flows in Dev and another user is the owner of the flows in Test and Prod. We use a DevOps pipeline to deploy between the different environments. It's a third person who carries out the deployment. What we are seeing is that everytime a flow is modified in the dev environment, when it is deployed to test it becomes deactivated and the connection has to be reset. This means that the person in test has to modify the flow to activate it and re-establish the connection which in turn creates an unmanaged layer on the flow which has to be deleted in order for the modifications to show up. Basically a whole lot of manual steps that we would love to avoid. 


I have seen that connection references can now be set during deployment using a settings file: We have tried this and it doesn't seem to be doing anything, our flows are still deactivated and no connections are set. The connection references say they have been modified, but no change to the flows themselves. Any tips on how to get this to work?


I have seen a lot of people having issues like this but no clear answers to why or how to solve it. I imagine it is to do with the multiple users involved across our environments. Unfortunately, it doesn't seem possible (correct me if I'm wrong) to use a service principal as owner of our flows as we will quickly reach API call limits. 


Any ideas of what we need to do to get the flows to stay active and for the connection to be set during deployment? I'm grateful for any insight. 

Frequent Visitor

Hello, @HFG Have you had any luck using the deployment file since? The deployment file doesn't seem to be making any difference at all. If we download the solution at Destination after import, it seems to have exactly the same json file as the source. What should have happened is that the Settings file in Azure Repo should have been used. But this doesn't seem to be the case.

Advocate III
Advocate III

Hi @rgupta 

Sorry for such a slow reply!

We never did manage to get this working. We're still having to do the manual steps everytime we deploy. What about you?

I don't know if you've seen, but there have been advances in the deployment settings file which now includes activating flows. It's currently in preview, but I'm hoping for GA soon :

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.


New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Users online (3,458)