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_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,242)