Anonymous access is still working even with App Service authentication Enabled

Bo Xiao 25 Reputation points Microsoft Employee
2024-06-26T11:24:20.74+00:00

I turned on authentication and add Microsoft Entra as identity provider, but anonymous access is still working.

What configuration did I miss?

User's image

User's image

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,016 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Bo Xiao 25 Reputation points Microsoft Employee
    2024-07-15T02:37:15.7866667+00:00

    https://learn.microsoft.com/en-us/azure/azure-functions/flex-consumption-plan#considerations

    Learned from dev team, easy auth is not turned on for flex consumption. That's why the authentication is not working.

    1 person found this answer helpful.
    0 comments No comments

  2. Luis Arias 6,796 Reputation points
    2024-07-13T21:16:16.24+00:00

    Hi Bo Xiao,

    The best option to troubleshoot why the function app still acepting anonymous authentication It's byu Azure functions core tools (https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local) try run on local and validate the function app authenticate as expected: func start

    When your function is running on local as expected you can deploy to the Azure function service again. Restart the service just to confirm the changes.

    References:

    If the information helped address your question, please Accept the answer.

    Luis

    0 comments No comments

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.