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 / DevOps Failed to conne...
Power Apps
Unanswered

DevOps Failed to connect to Dataverse

(0) ShareShare
ReportReport
Posted on by 945

Hi,

 

I'm trying to deploy my solution with DevOps, when trying to connect using task : Power Platform WhoAmI, for checking only whether my DevOps can connect to Dataverse or not, but it always error saying failed to connect to Dataverse ->

Axal_0-1646670386253.png

I'm actually not too familiar with DevOps so hopefully someone here can guide me someway.

 

So as mentioned I created this task in my pipeline ->

Axal_1-1646670502136.png

While the 1st task is default, the 2nd is with these parameter :

Axal_3-1646670639403.png

 

As in the pict, I'm choosing Service Principal and had choose my Service connection which I've created earlier in Project Setting - Service connection. And I believe I have put the correct Tenant ID, Application ID, and Secret key when create it.

 

Any idea what went wrong ? Or is it really it is because of an incorrect Id and secret key only ? Although pretty sure it is correct, so not a clue why ?

 

Thanks in advance

 

I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    Did you add your Service Principal as an App User in Dataverse and assign an appropriate role?

  • Axal Profile Picture
    945 on at

    Hi @cchannon ,

     

    I think I didn't, may I know how to do that ? can you help me to direct me to some good article about this ? or Youtube video will be even better.

     

    Thanks

  • Verified answer
    cchannon Profile Picture
    4,702 Moderator on at

    Sure.

     

    Open the admin portal (https://admin.powerplatform.microsoft.com/) and open your environment (requires admin privs). Click Settings, then under Users + permissions, click Application users

     

    cchannon_0-1646702508464.png

    Click New App User, then in the side panel that opens, click Add an app to search for the App Registration you used for your DevOps Pipeline (all app registrations in your tenant will be visible to you here).

    cchannon_1-1646702701134.png

    Assign the app a business unit (probably root) and a role (sysadmin maybe?) and you should be all set!

     

    Have fun!

     

     

  • Axal Profile Picture
    945 on at

    Thank you very much. 

    It is resolved now.

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard