Secure JUST one function in an Azure Function with Easy Auth

Pat Long 46 Reputation points
2022-11-17T17:43:28.037+00:00

We have an Azure Function that has its' existing functions secured via a Function Key. That is OK for those but we want to add a new function that we would want to have stronger security. We would want to use Azure B2C accounts.

Is it possible to secure just the new Function with EasyAuth or is Easy Auth a setting that must apply to all functions within an Azure Function?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,605 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pat Long 46 Reputation points
    2022-11-22T15:02:59.047+00:00

    I now have a single Function in a Function App secured using B2C.

    The function has the AuthorizationLevel.Anonymous and I followed these excellent instructions https://damienbod.com/2020/09/24/securing-azure-functions-using-azure-ad-jwt-bearer-token-authentication-for-user-access-tokens/

    1 person found this answer helpful.