I need to hit the data factory pipeline with the REST call ... So, I
- Registered application in the Azure Active Directory.
- Obtained Client_ID and client_Secret
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 ?
CodePudding user response:
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.
CodePudding user response:
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 :
- Add dynamic content ->
@activity('Web1').output.access_token
Pipeline successfully executed and got the token