Azure Function - ReadOnly Lock Question

JoelP 306 Reputation points
2022-09-15T20:23:51.477+00:00

We have put ReadOnly locks in our Function Apps. Why can't I access/read the Configuration portion, App Insights, and sometimes the Azure Monitor

241633-image.png

241607-image.png

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

3 answers

Sort by: Most helpful
  1. Rafael da Rocha 5,091 Reputation points
    2022-09-15T21:24:21.91+00:00

    Hello,

    this is by design, to prevent exposure of secrets that could be used to gain write access.
    There's a closed issue on Azure Functions GitHub related to this problem and roles, but the same logic applies to any role when a ReadOnly lock is placed.

    RBAC reader role does not work with Azure Functions

    ----------

    If any reply helped solve your question, please remember to upvote and/or "Accept Answer".
    It helps others facing similar issues find the solution.

    0 comments No comments

  2. MughundhanRaveendran-MSFT 12,476 Reputation points
    2022-09-16T09:27:01.857+00:00

    Hi @JoelP ,

    Thanks for reaching out to Q&A.

    According to the below documentation, a read-only lock on a storage account prevents users from listing the account keys. This is applicable to function app as well because the configuration section of the function contains the app settings that has storage account connection string. So it is expected that the configuration page of the Function app doesnt list the app settings.

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json#considerations-before-applying-your-locks

    I will work to modify the above document to include Functions as well.

    Hope this helps! Feel free to reach out to me if you have any questions or concerns.

    0 comments No comments

  3. JoelP 306 Reputation points
    2022-09-20T22:33:42.923+00:00

    Should you atleast check the Function app runs under Monitor?

    243221-image.png

    243205-image.png


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.