cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ThanujaReddy
Regular Visitor

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

"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.

0 REPLIES 0

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,865)