Forum Discussion
mariellecespedes
Oct 29, 2020Copper Contributor
Execute Azure Function using ADF activity and AAD Login
We are trying to execute an Azure Function (HTTP type) using Azure Data Factory (ADF). The Function App has the App Service Authentication set as "On" and the action to take when request is not authe...
mariellecespedes
Oct 29, 2020Copper Contributor
Yes, we have Managed Identity in ADF.
The response when we get after the execution is a 401 Error type (unauthorized).
We used the Advanced settings configuration in the Function App and used the following information from the App Service app:
- Client ID
- Tenant ID
- Client secret
- Application ID URI
We retrieved the information from the Overview tab from the App Service app. Copy-pasted it into the Function App configuration and followed the steps from the documentation.
We aren’t using a web app (in this case it is ADF) and maybe that’s the confusing part when following the steps from the documentation, as ADF is the one who is calling the function.
Nills Franssens
Microsoft
Oct 29, 2020mariellecespedes When you access the function directly (not using ADF) - do you get the same 401, or does that authenticate?
- mariellecespedesOct 29, 2020Copper Contributor
- Nills FranssensOct 29, 2020
Microsoft
OK, so this seems to be functions related indeed and not ADF related.
Have you tried accessing the functions URL directly in a web browser to see if you get a redirect to AAD?
- dkadam30Apr 19, 2021Copper ContributorHi Nills,
Hi Nills, Would function key work from ADF to call function with AAD authentication enabled on the function app?