How to monitor appservice plan file system usage

Jeremy Schotte 26 Reputation points
2023-08-16T13:01:12.21+00:00

Hello,

Is there a way to automatically monitor the file system usage of an appservice plan with an metric/alert/logicapp to detect when it's near the treshold ?

I've found you can create an alert with the scope "File System Usage" for an appservice but not for an appservice plan.

Thanks

Jérémy

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,658 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Monalla-MSFT 13,071 Reputation points Moderator
    2023-08-22T18:15:01.8266667+00:00

    @Jeremy Schotte - Thanks for reaching out to us.

    Yes, you can use Azure Monitor to monitor the file system usage of an App Service plan and set up alerts to detect when it's near the threshold.

    Please take a look at the below steps in order to achieve this:

    1. Enable diagnostics logging for your App Service plan. You can do this from the Azure portal by going to your App Service plan, selecting "Diagnostics logs" under Monitoring, and configuring the settings to log file system usage.
    2. Create a Log Analytics workspace and configure it to collect the file system usage logs from your App Service plan.
    3. Create a metric alert in Azure Monitor based on the file system usage metric for your App Service plan. You can set the alert to trigger when the usage is near the threshold you specify.
    4. Create a Logic App that is triggered by the alert and sends a notification to the appropriate person or team.

    Hope this helps. and please feel free to reach out if you have any further questions.


    If the above response was helpful, please feel free to "Accept as Answer" and click "Yes" so it can be beneficial to the community.


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.