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 / 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:

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 383 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard