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 / Setup a pipeline using...
Power Apps
Unanswered

Setup a pipeline using azure DevOps for power platform using self hosted agent(Power Platform Publish Customizations Task Failure)

(0) ShareShare
ReportReport
Posted on by

"We are trying to setup a pipeline using azure DevOps for power platform using self hosted agent(Since Microsoft host agent requires parallelism permission from Microsoft), following the steps form this tutorial. The account we are using for power platform is different than what we are using for Azure DevOps. We followed all the steps that are provided  here  to setup application user by providing the application ID but the system couldn't find it. After which we followed the steps to create service principle and client secret using PowerShell by executing the script provided here.

 

Once we Queued our pipeline we got the below error:

 

ThanujaReddy_3-1624349854945.png

(This is how our pipeline looks)

 

 

[error]Failed to connect to instance: https://xxx.crm8.dynamics.com/. Please verify your credentials for *** and instance url.

ERROR REQUESTING Token FROM THE Authentication context - General ADAL Error

AADSTS700016: Application with identifier '***' was not found in the directory 'effa448b-4c6d-4c0a-8ac3-4994c7e9b88a'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant.

Trace ID: afc3689f-95c3-4c31-8f77-59603daee400

Correlation ID: 29db5f73-ee67-4a16-beb7-59534084d517

Timestamp: 2021-06-21 12:16:20Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"unauthorized_client","error_description":"AADSTS700016: Application with identifier '***' was not found in the directory 'effa448b-4c6d-4c0a-8ac3-4994c7e9b88a'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant.\r\nTrace ID: afc3689f-95c3-4c31-8f77-59603daee400\r\nCorrelation ID: 29db5f73-ee67-4a16-beb7-59534084d517\r\nTimestamp: 2021-06-21 12:16:20Z","error_codes":[700016],"timestamp":"2021-06-21 12:16:20Z","trace_id":"afc3689f-95c3-4c31-8f77-59603daee400","correlation_id":"29db5f73-ee67-4a16-beb7-59534084d517","error_uri":"https://login.microsoftonline.com/error?code=700016"}: Unknown errorUnable to connect to CRM: Response status code does not indicate success: 400 (BadRequest).

AADSTS700016: Application with identifier '***' was not found in the directory 'effa448b-4c6d-4c0a-8ac3-4994c7e9b88a'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant.

Trace ID: afc3689f-95c3-4c31-8f77-59603daee400

Correlation ID: 29db5f73-ee67-4a16-beb7-59534084d517

Timestamp: 2021-06-21 12:16:20Z => Response status code does not indicate success: 400 (BadRequest). => {"error":"unauthorized_client","error_description":"AADSTS700016: Application with identifier '***' was not found in the directory 'effa448b-4c6d-4c0a-8ac3-4994c7e9b88a'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant.\r\nTrace ID: afc3689f-95c3-4c31-8f77-59603daee400\r\nCorrelation ID: 29db5f73-ee67-4a16-beb7-59534084d517\r\nTimestamp: 2021-06-21 12:16:20Z","error_codes":[700016],"timestamp":"2021-06-21 12:16:20Z","trace_id":"afc3689f-95c3-4c31-8f77-59603daee400","correlation_id":"29db5f73-ee67-4a16-beb7-59534084d517","error_uri":"https://login.microsoftonline.com/error?code=700016"}: Unknown errorUnable to Login to Dynamics CRM

Unable to Login to Dynamics CRM.

 

 

 

Please help us with the solution.

Categories:
I have the same question (0)

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