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 / Import Connection Refe...
Power Apps
Answered

Import Connection Reference in Azure DevOps CI/CD pipeline

(0) ShareShare
ReportReport
Posted on by 11

I'm trying to create a CI/CD pipeline for a Power Platform Solution in Azure DevOps. The pipeline is relatively simple with only a single stage which consists of three tasks: 

  1. Power Platform Tool Installer
  2. Power Platform Export Solution
  3. Power Platform Import Solution

Azure47_2-1652883831080.png

 

I also added an Azure Repo as a Build Artifact. Excluding the readme file from the initial commit, the only thing the repo stores is a Deployment Settings File which is used in the Import Solution task of my pipeline.

Azure47_1-1652883703014.png

The solution itself only contains a single Power Automate flow with a Office 365 - Send an Email (V2) action and an SharePoint - Get items action. The solution also contains two connection references for both of these actions.

 

The first time I deployed the pipeline which exported my solution from my first environment and imported it in my second environment, it was missing connection references for both actions in the flow. After this I manually created connection references for both actions and saved the "LogicalName", "ConnectionId", and "ConnectorId" values in my Deployment Settings file on the Azure Repo so the connection references can be automatically populated on each subsequent deployment.

 

My issue is that after the initial deployment and after updating my deploymentSettings.json file, after every deployment displays a missing connection reference error for both actions in my flow even though the newly created connection references are still in my solution on my second environment.

 

Azure47_3-1652885225157.png

 

How can I resolve this so that I don't have to manually set each connection reference on each deployment?

I have the same question (0)
  • Azure47 Profile Picture
    11 on at

    I solved the issue by first importing my solution as a holding solution and then I added a Apply Solution Upgrade task. The solution also needs to be exported and imported as a Managed Solution.

     

    Edit: My mistake, the connection references were available only in the Unmanaged layer of my solution. The issue still isn't resolved.

  • Danj_b Profile Picture
    76 on at

    Hi mate, did you find a fix for this??

  • Verified answer
    Azure47 Profile Picture
    11 on at

    Yes, the key to solving this issue was populating the Deployment Settings file with the LogicalName and ConnectorId values from the connection reference in your solution from the source environment, and the ConnectionId value from a connection that you first have to manually create on your target environment, and then simply exporting/importing as a managed solution.

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard