Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Governance and Administ...
Answered

Release solution to new environment with devops

(0) ShareShare
ReportReport
Posted on by 72

I am interested in information about or experiences with deploying PowerApps solutions to new environments within the same tenant. 

In my solution I have a canvas-app and several flows between the app and sharepoint. I have used connection references to all connections (sharepoint, mail, etc.). On the devops side I have a build pipeline from my development environment, very much in line with Microsoft's recommendations for ALM. In addition, I have a release pipeline to publish the solution in another environment, e.g. a test environment. I can publish the release but when I access the solution in the new environment all flows have been turned off and all connections to sharepoint have been severed. When I inspect the flows it throws an error that it was unable to locate the connection Id. What strikes me as odd here is that the connection references that are visible in the new solution cannot be selected. However, what I can do is to add a new connection (from each flow), whereafter I can turn the flow back on and activate each of them in the canvas app. 

What I am asking for here, is any documentation, guide, tutorial, help,  to make this release a little more automatic, so I won't have to re-add connections for every single action from each of my flows. 

Categories:
  • larschrjensen Profile Picture
    72 on at
    Re: Release solution to new environment with devops

    @badalsharma0608 This information is somewhat outdated with the release of the settings deployment files, which have made my life much easier. Take a look at this blog post.

  • badalsharma0608 Profile Picture
    17 on at
    Re: Release solution to new environment with devops

    @larschrjensen I am not able to select anything on the breadcrumb path. I am not able to go one step back to assign correct connection. My target environment has the same connection name as source environment, but the connection reference does not point to the target one. So I am being forced to create new connection from within the flow.

    Can you please assist.

  • Verified answer
    larschrjensen Profile Picture
    72 on at
    Re: Release solution to new environment with devops

    I think I have finally found a working solution. I'll document my steps here for other ALM hopefuls. 
    When pushing to the target environment for the first time I need to click on each of the connection references, click on solutions layers, (see pa_1)  use the breadcrumb path to go one step back (see pa_2) and from here I can assign the correct connection. Subsequent deployments now work without any hassle. 

  • larschrjensen Profile Picture
    72 on at
    Re: Release solution to new environment with devops

    Hi @EricRegnier 

     

    I will take a look into powershell task, I was not aware this was 'intended behavior', but thank for the reference.

     

    As for the connection references, this is exactly what I have been doing. I've added the connections (e.g. to mail or sharepoint) in the target environment, added connection references in the source environment and made sure that the flows are using exactly those references. Then when I deploy to the target environment and turn on a flow it throws me the following error:

     

    Failed to activate component(s). Flow client error returned with status code "BadRequest" and details "{"error":{"code":"XrmConnectionReferenceMissingConnection","message":"Connection-id' missing logical name for \"new_Mail\" to connection reference."}}".


    Then when opening a flow it marks the connection as invalid. I can then add a new connection reference, but not choose the one already available in the solution. 

     

    Any pointers to what I am doing wrong will be highly appreciated

     

     

  • Verified answer
    EricRegnier Profile Picture
    8,714 Most Valuable Professional on at
    Re: Release solution to new environment with devops

    Hi @larschrjensen,

    Unfortunately Power Automate flows automatically get deactivated after a solution import, that's the default behavior. You can have a PowerShell task in your pipeline that enables them after the import using "Enable-Flow" cmdlet: https://docs.microsoft.com/power-platform/admin/powerapps-powershell 

    For the connections, all you need to do is set them up once in the target environments and include the connection references in the solutions, then the apps and flows should automatically reference the connections without re-configuration: https://docs.microsoft.com/powerapps/maker/data-platform/create-connection-reference 

    Hope this helps!

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Governance and Administering

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 11 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 9

#3
bscarlavai33 Profile Picture

bscarlavai33 5 Super User 2025 Season 1

Overall leaderboard

Featured topics