[Azure] How can I get alerted when the number of storage account per subscription is reached ?

Ridha ELGHOUL 21 Reputation points
2022-04-07T14:12:15.16+00:00

The quotas usage of storage account per susbcription reached and we can the insights under susbscription -> Quotas and usages, it shows the number of created used storage per subscription. I would like to configure an alert when a threshold is reached ( for example 80% of storage account limit is created)

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,922 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,816 questions
0 comments No comments
{count} votes

Accepted answer
  1. George Moise 2,346 Reputation points Microsoft Employee
    2022-04-08T07:06:50.477+00:00

    Hi @Ridha ELGHOUL ,

    It seems that there is no out-of-the-box alerting capabilities on Azure Subscription Limits.

    Still, since you can get the usage / quota information on any Resource Type you are running in your subscriptions, you can query that data (through PowerShell to generate alerts / send that information to an Azure Log Analytics Workspace) and then generate an Azure Monitor Alert when your defined threshold is breached on one of the Resource Types.

    The process of achieving that is presented in the following article:

    1. Create a PowerShell Azure Automation Runbook that reads details about each resource type quota and usage and writes this data in Log Analytics Workspace
    2. Azure Monitor executes an Alert Rule by running a query on that Workspace and triggering alerts when quota defined thresholds are breached

    Article: tracking-azure-quotas-and-usage

    I hope it helps!
    BR,
    George


0 additional answers

Sort by: Most helpful