Thanks for the question and using MS Q&A platform.
It seems you're having trouble connecting to a REST service that needs an access token (OAuth2) using Azure Data Factory.
From the error message, it looks like the request body is missing the 'client_secret' parameter, which is needed for the client credentials flow. Make sure to include it in the request body. Also, check if 'Allow public client flows' is disabled for the Azure AD application. Enabling it might fix the issue.
You can find more details in these links:
- https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app#configure-a-client-application-to-allow-public-urls
- https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow#request-an-access-token
Also, review the linked service configuration in Azure Data Factory to ensure the 'client_secret' is included and correct. Here's a guide on parameterizing linked services: https://docs.microsoft.com/en-us/azure/data-factory/parameterize-linked-services?tabs=data-factory
If the problem persists, you can try using the Web Activity as a temporary solution, as you mentioned.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.