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

Notifications

Announcements

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
    942 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
    942 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
    942 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
    942 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard