Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

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

 

  • Axal Profile Picture
    945 on at
    Re: DevOps Failed to connect to Dataverse

    Thank you very much. 

    It is resolved now.

  • Verified answer
    cchannon Profile Picture
    4,702 Super User 2025 Season 1 on at
    Re: DevOps Failed to connect to Dataverse

    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
    Re: DevOps Failed to connect to Dataverse

    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

  • cchannon Profile Picture
    4,702 Super User 2025 Season 1 on at
    Re: DevOps Failed to connect to Dataverse

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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 57 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

Overall leaderboard