2

I want to use ADF , web activity to get the access token from https://login.windows.net/**********/oauth2/token

using the system assigned managed identity from ADF

resource is

https://purview.azure.net

How is the request body should be ? how is the header should be ?

mytabi
  • 639
  • 2
  • 12
  • 28

1 Answers1

1

Please follow below steps:

Step 1: Create a web activity to get the Access Token from ADF

  • Add your URL: https://login..../<Tenant ID>/oauth2/token

enter image description here

  • Method : POST

  • Body: grant_type=client_credentials&client_id=<client_id>&client_secret=<client_secret>&resource=https://purview.azure.net/

  • Header: Content-Type:application/x-www-form-urlencoded

  • Authentication: System Assigned Managed Identity

  • Resource: https://purview.azure.net/

enter image description here

Step2: Create Set variable :

  • Add dynamic content -> @activity('Web1').output.access_token

enter image description here

Response

enter image description here

B. B. Naga Sai Vamsi
  • 2,386
  • 2
  • 3
  • 11
  • 1
    If you're already submitting a `client_secret` in the POST body, then what is the "Authentication: System Assigned Managed Identity" still for? – Grilse Jan 31 '23 at 16:34