Azure AD authentication for Azure Function

kulmit bhambra 21 Reputation points
2020-12-02T17:56:19.417+00:00

Hi,
We're working on an Azure Function that needs to authenticate against Azure AD. User interaction is not required. We've had some discussions around the best way to do this:

  1. Use the built-in App Service authentication and authorization support (https://learn.microsoft.com/en-us/azure/app-service/overview-authentication-authorization).
  2. Use Microsoft's OAuth 2.0 client credentials flow (https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow).

We're looking at #2 as it seems easier to implement, however I'm not convinced it's necessarily the best way forward. Please advise the best way to authenticate against Azure AD in this scenario.

Thank you

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,010 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,838 questions
0 comments No comments
{count} votes

Accepted answer
  1. James Hamil 24,746 Reputation points Microsoft Employee
    2020-12-02T19:17:51.11+00:00

    Hi, I would recommend taking this route. It's fairly simple and quite versatile. Please let me know if I can answer any questions!

    Best,
    James


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.