access Azure function using RBACv without function key

Mohit Khas 21 Reputation points
2021-08-12T06:55:04.39+00:00

Hi,
I am trying to access a azure function(server less) from app service without using function key and using RBAC. While calling function, it is showing unauthorize access. But when i am trying to access a function in Durable function without function key and using RBAC, i am able to access it. What is the reason behind this?
So, can i access a azure function if i provide the RBAC access and don't provide function keys?
If yes, then how?..

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,211 questions
Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
660 questions
{count} votes

Accepted answer
  1. Samara Soucy - MSFT 5,051 Reputation points
    2021-08-27T01:31:23.023+00:00

    I think I understand now what you are trying to do. The durable functions API uses a different authentication system, though it is fairly consistent- that's why there is no function key for that API.

    With traditional functions, in order to use AAD auth instead of keys you need to enable the AAD provider on the App Service level and then set the individual function to "anonymous" access. As long as app service auth is turned on this won't open it to the public- it just stops it from requiring a key. If you were to turn on App Service auth and leave the default function settings on then you would need both AAD permission and the function key.


1 additional answer

Sort by: Most helpful
  1. Prasun Aggarwal 1 Reputation point Microsoft Employee
    2022-05-25T20:33:26.253+00:00

    how to enable anonymous access on function

    0 comments No comments