Reputation: 468
I need to hit the data factory pipeline with the REST call ... So, I
Then I try to use Postman to get the authentication token and get an error, which I do not understand. Please, help. How can I get authentication token to my ADF using Postman ?
Upvotes: 0
Views: 1105
Reputation: 2729
Please follow below steps for generating bearer token In ADF :
Step 1: Create a web activity to get the Access Token from ADF.
URL: https://login.microsoftonline.com/<Tenant ID>/oauth2/token
Method : POST
Body: grant_type=client_credentials&client_id=<client_id>&client_secret=<client_secret>&resource=https://management.azure.com/
Header: Content-Type:application/x-www-form-urlencoded
Step2: Create Set variable :
@activity('Web1').output.access_token
Pipeline successfully executed and got the token
Upvotes: 1
Reputation: 1422
In body section, instead of raw
, use - x-www-form-urlencoded
as below and it should help resolve the issue.
Ideally, when you select x-www-form-urlencoded
radio button in the Body
section, it automatically sets the Content-Type
=application/x-www-form-urlencoded
under the Headers tab as shown below.
Upvotes: 1