How to send an Azure file share Available space Alert?

Galipelly Rajashekar (Quadrant Resource LLC) 60 Reputation points Microsoft External Staff
2025-03-18T12:19:01.7966667+00:00

I need to send an alert when an Azure file share reaches 80% capacity, but we can only set alerts at the storage account level, not for individual file shares. I attempted to get the total and used sizes using a PowerShell script, but I couldn't retrieve the used size of the file share. How can we send a Individual file share space alert when it reaches 80% capacity?

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,539 questions
0 comments No comments
{count} votes

Accepted answer
  1. Amrinder Singh 5,870 Reputation points Microsoft Employee Volunteer Moderator
    2025-03-18T13:52:47.5266667+00:00

    Hi Galipelly Rajashekar (Quadrant Resource LLC),

    Thanks for reaching out over Q&A forum.

    The below link talks about your use case however it is limited to premium file share and standard file shares.

    https://learn.microsoft.com/en-us/azure/storage/files/files-monitoring-alerts#how-to-create-an-alert-if-the-azure-file-share-size-is-80-of-capacity

    Below is link to sample code piece to explore wherein you can get the file share capacity by traversing across multiple file and then set up a custom alert ahead based on the output.

    https://github.com/Azure-Developer-Support/CodeRepository/blob/master/Storage/Powershell/AzureStorageFileShare_GetCapacityandQuota.ps1

    Hope the above suggestion helps! Please let us know do you have any further queries.

    Please do consider to “up-vote” wherever the information provided helps you, this can be beneficial to other community members. 


1 additional answer

Sort by: Most helpful
  1. Vinod Kumar Reddy Chilupuri 4,185 Reputation points Microsoft External Staff Moderator
    2025-03-18T13:53:56.4533333+00:00

    Hi Galipelly Rajashekar (Quadrant Resource LLC),

    To send an alert when an Azure file share reaches 80% capacity, you can create an alert rule specifically for the file share. However, it's important to note that if you are using standard file shares, you won't be able to set alerts on individual file shares since per-share metrics aren't available. Instead, alerts for standard file shares are based on all file shares in the storage account.

    If you are using premium file shares, please follow the below documentation.

    https://learn.microsoft.com/en-us/azure/storage/files/files-monitoring-alerts#how-to-create-an-alert-if-the-azure-file-share-size-is-80-of-capacity

    If you are unable to use premium file shares and need to monitor standard file shares, consider restructuring your storage account to have one file share per storage account to enable individual monitoring. While this approach allows for individual monitoring, it may lead to increased management overhead and costs, as each storage account incurs its own charges.

    Hope the above suggestion helps! Please let us know do you have any further queries.

    Please do consider to “Accept the answer” wherever the information provided helps you, this can be beneficial to other community members. 

    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.