user21510438
user21510438

Reputation:

Rest call failed with client error in ADF pipeline

enter image description here

Trying to create a pipeline with REST API, with copy activity, linkedservice test connection is succeeded, but pipeline failed with error. User Configuration issue, Failure happened on Source side. Error code=Restcall failed with client error, Status code 401 Unauthorised, please check your activity settings

Upvotes: 0

Views: 627

Answers (2)

Miao Tian-MSFT
Miao Tian-MSFT

Reputation: 5632

I can send the REST API call successfully with the following setting. The Authentication method is Basic. The Username can be any value. The password is your personal access token (PAT) with the right permission.

enter image description here

Upvotes: 0

Pratik Lad
Pratik Lad

Reputation: 8382

User Configuration issue, Failure happened on Source side. Error code=Restcall failed with client error, Status code 401 Unauthorised, please check your activity settings

The error you are facing is because the authorization you are using is not correct or invalid authentication credentials for the request.

To call devops API from ADF you can follow below steps:

  • In the URL of REST API linked service Provide your devops API URL
  • In the REST API linked service set Authentication is to 'None'
  • In the headers, I added a field 'Authorization' with the value 'Basic xxxx' where 'xxxx' is my personal access token (PAT token) Ensure the PAT has the necessary to access the required resources.

Upvotes: 0

Related Questions