An Azure service that provides an event-driven serverless compute platform.
Hi @Richard Mackriell - You're not missing it — excludedPaths isn't exposed in the Authentication blade. It's a property of the authsettingsV2 resource, so you set it through ARM rather than the portal UI.
Filling in the config from previous answer
{
"properties": {
"globalValidation": {
"requireAuthentication": true,
"unauthenticatedClientAction": "Return401",
"excludedPaths": [
"/api/public-endpoint"
]
}
}
}
To apply it, edit the Microsoft.Web/sites/<your-app>/config/authsettingsV2 resource — either in an ARM or Bicep template, or interactively through Azure Resource Explorer, which lets you PUT the JSON directly without writing a template.
Return401 is the right value for an API — the ARM reference lists AllowAnonymous, RedirectToLoginPage, Return401 and Return403, and the redirect is for browser apps.
You still want [HttpTrigger(AuthorizationLevel.Anonymous, ...)] on that endpoint, as noted above. The two are separate layers: the excluded path covers App Service Auth, the trigger's auth level covers the Functions runtime. Both have to permit the request.