Creating alerts based on Azure Forecasts for spending
@20aman Mar 16, 2021You can now create alerts based on the Azure Forecasts. This can help adjust your spending before you hit the budget target. Think about it, if you are going to hit the budget on the 25th day of the month instead of the last day you would want to know about it as early as possible. The earlier you know, the better you can get to manage the spending.
You can customize notifications and also take action if the alert is triggered by leveraging the Action Groups in Azure. You can check how to create Action Groups in this post: Creating the Action Groups for alerts in Microsoft Azure.
How to configure Alerts based on Forecasts
Navigate to "Cost Management + Billing" and select the "Cost Management" option.
![Cost Management](/images/1616979222606125161f60d.png)
In the Cost Management blade, select the option for "Budgets" and then click on "+ Add".
![Budgets inside Cost Management](/images/161697925560612537d527b.png)
In the next screen under "Create a budget" select the appropriate values for the following:
- Budget scope
- Budget name
- Reset period - under most circumstances this should be Billing month
- Creation date
- Expiration date
- Provide an amount for the Budget
![Create Budget](/images/16169792766061254c6544e.png)
In the next screen for "Set alerts", under the Alert conditions, select the type as "Forecasted". Provide the percentage of budget. E.g. if you provided the budget as $150 and selected the percentage of budget as 80% then the alert would be triggered at $120.
Provide the Action Group to alert via SMS or emails. You can alert via email by providing individual email ids or distribution list's id for "Alert recipients (email)" entry.
![Set alerts section](/images/16169792926061255c9682b.png)
You can read more about this feature at the official blog here: Prevent exceeding Azure budget with forecasted cost alerts