Background: I have an Azure Function App deployed with App Service Authentication (easyauth) enabled using AAD, hooked up to an Azure AD B2C tenant. It\'s a
Would something like URL authorization rules help? It works for both web apps and function apps.
https://blogs.msdn.microsoft.com/appserviceteam/2016/11/17/url-authorization-rules/
For your scenario, you'll first need to allow anonymous access in the portal. Next, you'll want to create an authorization.json file in the root of your site and define two routes:
Give that a try and see if it will work for you. In general we want to improve the integration of our authentication feature with Azure Functions, and this is one method we're looking at.