How to call azure functions from react web app securely

JDR 90 Reputation points
2023-12-17T06:38:41.1833333+00:00

Hi,

I have successfully deployed a react web app on Azure. User of my web app authenticate using their email through Microsoft Entra ID.

I would like this web app to call azure functions deployed in a function app.

What is the recommended way to authenticate my web app to call the functions?

Assign a managed identity to the web app and give access to this managed identity in the function app?

Thanks for any pointer.

JD

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,939 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,984 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 57,831 Reputation points Volunteer Moderator
    2023-12-17T06:52:45.24+00:00

    Hi JDR,

    Yes, you will want to use an app registration within Microsoft Entra ID to call the functions with. Please use the following guide:

    How to call an AAD protected Azure Function from React

    https://www.smcculloch.com/how-to-call-aad-protected-azure-function-from-react


    If this is helpful please accept answer.


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.