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

Community site session details

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

Release solution to new environment with devops

Like (0) ShareShare
ReportReport
Posted on 22 Mar 2021 12:34:10 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 25 May 2022 at 13:39:19
    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 25 May 2022 at 10:41:37
    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 31 Mar 2021 at 08:51:58
    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 30 Mar 2021 at 14:36:37
    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 28 Mar 2021 at 23:06:00
    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 our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Featured topics

Loading complete