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.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I turned on authentication and add Microsoft Entra as identity provider, but anonymous access is still working.
What configuration did I miss?
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.
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