Hi, I am trying to use the Azure management api to GET pipeline run information for a data factory pipeline using Web Activity. To achieve this I am doing a POST to grab the bearer token using the details below.
URL: https://login.microsoftonline.com/common/oauth2/authorize
METHOD: POST
HEADERS: Content-Type = application/x-www-form-urlencoded
BODY: grant_type=client_credentials&client_id={id}&client_secret={secret}&resource=https://management.azure.com
JSON Response:
{
"Response": "",
"ADFWebActivityResponseHeaders": {
"Pragma": "",
"Strict-Transport-Security": "",
"X-Content-Type-Options": "",
"X-Frame-Options": "",
"Link": "",
"X-DNS-Prefetch-Control": "",
"x-ms-request-id": "",
"x-ms-ests-server": "",
"Cache-Control": "",
"P3P": "",
"Set-Cookie": "",
"Date": "",
"Content-Length": "",
"Content-Type": "",
"Expires": ""
},
"effectiveIntegrationRuntime": "",
"executionDuration": 0,
"durationInQueue": {
"integrationRuntimeQueue": 1
},
"billingReference": {
"activityType": "",
"billableDuration": [
{
"meterType": "",
"duration": 0.1,
"unit": "Hours"
}
]
}
}
I looked at the this example too. But, In my response I don't see anything related to token. Authentication is done using Service Principal. Am I missing something silly in here?
Thank you in advance.