
Announcements
"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:
(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.