Azure Functions | Roles

Abhay Chandramouli 1,056 Reputation points
2024-04-26T07:43:58.7866667+00:00

Hi

What role would you recommend to provide if I want to allow only Read Access to a Function App. This should include reading the Configurations and App Settings (Environment Variables) on the portal

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

2 answers

Sort by: Most helpful
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2024-04-26T09:57:12.84+00:00

    @Abhay Chandramouli In general if you have access to the Reader role at the function app/subscription level you should be able to view details the configuration.

    In case if custom role you should have the read permission on microsoft.web/sites/config/web/appsettings to view the app settings.

    User's image

    0 comments No comments

  2. Pinaki Ghatak 5,600 Reputation points Microsoft Employee Volunteer Moderator
    2024-06-03T08:41:33.7266667+00:00

    Hello @Abhay Chandramouli

    To provide read access to a Function App, you can assign the "Reader" role to the user or service principal. This role allows the user to view the Function App and its settings, but does not allow them to make any changes.

    To specifically allow the user to read the configurations and app settings (environment variables), you can assign the "Website Contributor" role to the user or service principal. This role allows the user to view and modify the app settings, but does not allow them to modify the Function App itself.

    Please note that the "Website Contributor" role also allows the user to modify other settings related to the web app, such as connection strings and deployment credentials. If you only want to allow the user to view the app settings, you can create a custom role with the necessary permissions.

    I hope this helps

    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.