Based on PoLP, what actions are required to get full access to a Function App?

Kent010341 231 Reputation points
2022-02-18T03:27:07.607+00:00

Based on PoLP (Principle of Least Privilege), what actions at what scopes are required to get full access to a Function App?

Includes:

  • Create (on Azure Portal)
  • Deploy (by IDE or other tools)
  • Enable Application Insights
  • Others

Currently, by the error message, I know that "Microsoft.Web/ServerFarms/write" and "Microsoft.Web/Sites/write" at the scope of the resource group used are required to create in an existing resource group. However, I don't know which action(s) is required to enable Application Insights, and it seems like I have something missing to create a function app without enabling Application Insights, which shows an error message after I click "Review + create":

175606-%E5%9C%96%E7%89%87.png

Besides, is there any document listing all actions required for every service?
And which role is suggested to be used for a developer member? Doesn't Contributor have too many permissions?

Thanks.

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

Accepted answer
  1. MayankBargali-MSFT 70,941 Reputation points Moderator
    2022-02-21T07:58:34.35+00:00

    @KentChen-2307 You can refer to Azure built-in roles document for more details what are the different roles available with the different permission/actions.
    As per the error in the screenshot, your user doesn't have the permission to register the resource provider Microsoft.Web

    You must have permission to do the /register/action operation for the resource provider. The permission is included in the Contributor and Owner roles. This is a one-time operation to register the resource provider on a new subscription where you haven't created that resource type yet. If the user has the contributor or owner role permission then this action will automatically be performed but as your user doesn't have this permission, therefore, you observe the error. For more details on registering the resource provide you can refer to this document.

    If you want a user to create/update/delete any resource then you can provide the contributor permission either at the subscription level or resource group level as per your requirement.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.