Log stream in Web App shows " This feature requires write permission to your app."

Nallamothu, Sai Ram 0 Reputation points
2025-05-23T15:39:30.35+00:00

Log_stream_error

we tried with assigning Contributor, Monito Reader, and microsoft.web/sites/write. But no use there.

what is more confusing is this issue is not persistant, across my department, Log streams are visible for someone and showning Permission error at the same time to other user. Sometimes after refresh it gets to normal (most of the times don't get normal). There is a Image attached for reference.

If anyone has experience or workaround or solution, would really appreciate your help.

Thank you

Sai

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,952 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Siva Nair 2,420 Reputation points Microsoft External Staff Moderator
    2025-05-26T16:37:32.9266667+00:00

    Hi Nallamothu, Sai Ram,

    You can configure the application logging and set the desired log level using the Azure Command-Line Interface (CLI). Here's how:

    az webapp log config \
      --name <your-app-name> \
      --resource-group <your-resource-group> \
      --application-logging filesystem \
      --level Information
    

    Replace <your-app-name> and <your-resource-group> with your actual App Service name and resource group name. This command enables application logging to the file system and sets the log level to "Information". You can adjust the --level parameter to Error, Warning, Information, or Verbose based on your needs. Azure CLI - az webapp log config

    Another approach is to configure diagnostic settings to send logs to a destination like Log Analytics, Azure Storage, or Event Hubs:

    1. Navigate to your App Service in the Azure Portal.
    2. In the left-hand menu, select Monitoring => Diagnostic settings.
    3. Click on + Add diagnostic setting.
    4. Provide a name for the setting.
    5. Under Logs, select the categories you wish to collect, such as:
      • AppServiceAppLogs: Application logs.
        • AppServiceHTTPLogs: HTTP request logs.
        1. Choose your destination(s) for the logs (e.g., Log Analytics workspace).
        2. Click Save to apply the settings.

    This method allows for more granular control over log collection and retention. Enable diagnostics logging for apps in Azure App Service

    If you have any further assistant, do let me know.

    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.