Hi all,
So, having a bit of difficulty. What I'm looking to understand is how might Power Automate actually be maintained when you have a REAL application, that needs to adapt and change.
Specifically here's my use-case:
- I build my flows in a Development Environment
- I want to import my flows into Production - fantastic, I can add the flows to a solution, export them into a .zip and import them into production! (or use Azure DevOps)
- Ok, when I import my flows, I need to re-authenticate connections. Fair enough the first time, I understand we need proper security.
But, here's where I run into difficulties...
4. So, I've made a few changes to SOME of these flows in Development, in response to feedback, new requirements etc. I now want to update my flows in Production a nice, clean, automated way.
But...I can't! (or can I?)
As I see it, we have a few options:
Option 1 (Manual Import/Azure DevOps with Build Tools):
- Zip up the solution file and import the updated flows, you'll have to overwrite the 'unmanaged' customizations though, in order for any updates to patch through, so you'll need to re-authenticate connections in every flow AND turn on all the flows again. Painful and not great if I'm not a system admin in the new environment (Cross tenant and ISV model, for example)
Option 2 (Deploy a separate Admin Flow & invoke every time I deploy):
- Power Automate has a connector...for Power Automate! That's handy.
- So, if I deploy a separate admin flow, I can call it with an HTTP request every time I import the other flows. This will activate the flows turned off during import...but I don't think it can automate the authentication of connections?
- If it can - that's fantastic, problem solved.
- If not, I'm in no better a place than before if I want to update a flow with a non-CDS connector:
- I would still have to authenticate the connections in each flow manually if I want to make any updates to any of my existing flows 😞
Option 3 (PowerShell)
- I notice that PowerShell cmdlets for PowerApps has actions to authorise connections, if I could use a Service Principal (with corresponding admin privileges) to authorise the flow connections, that would solve my issue.
- I could use the above approach to simply update the flows by:
- Overwriting unmanaged customisations
- Authenticating the connections with a PowerShell script connected to the service principal
- Use either PowerShell or the admin flow to enable the flows in the current environment
My question then - is (3) possible? Am I missing an easier way? Or is it the case that, as of now, there is no fully automated way to upgrade a power automate workflow?

Report
All responses (
Answers (