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 / Implementing service P...
Power Apps
Unanswered

Implementing service Principal from Dev to Prod Environment

(0) ShareShare
ReportReport
Posted on by 8

Hello everyone,

I have been working on this task for several days now. I have two environments in Dataverse, namely DEV and PROD. Initially, I moved my solution from DEV to PROD without implementing Service Principal. However, I was later instructed to include Service Principal for all my flows.

To do this, I created an app registration with all the necessary permissions and added it to both environments. I changed the owner to Service Principal and updated all the connections in the DEV solution to Service Principal. Furthermore, I created a connection reference for Service Principal in the PROD environment. But when I import the solution from Dev to Prod none of the connections revert to service principal. 
Is there something I am missing? I could not find anything online regarding this matter.  


I have the same question (0)
  • Shashank Bhide Profile Picture
    946 Moderator on at

    Have you included the connection reference in the solution you are importing? the connection ref needs to be present in the target env AFAIK.

  • shadman928 Profile Picture
    8 on at

    Yes I did! 

  • Shashank Bhide Profile Picture
    946 Moderator on at

    is it a managed import or unmanaged and does the solution exist already in the target?

  • shadman928 Profile Picture
    8 on at

    In Dev environment the solution is unmanaged, when I import the solution to Prod I import it as managed. Prior to adding Service Principal to the solution was running in prod. So, its an update to prod. 

  • Shashank Bhide Profile Picture
    946 Moderator on at

    ok, try to increment the solution version in dev and then do an "upgrade" in target instead of "update"

  • shadman928 Profile Picture
    8 on at

    I did, no change, the connection still connects to me. 

     

  • Shashank Bhide Profile Picture
    946 Moderator on at

    ok let's try one more thing 😊, do you see any "unmanaged" layer in solution layers for your power automate?

  • shadman928 Profile Picture
    8 on at

    It does not 😥

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
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard