Exercise - Create budget and alerts
This guided project consists of the following exercises:
- Apply cost-tracking tags
- Create budget and alerts
- Assign and test Azure Policy
In this exercise, you create a budget with alert thresholds that notify you before spending exceeds your target. Budget alerts give you early warning so you can investigate and adjust before costs get out of control.
This exercise includes the following tasks:
- Open Cost Management and start the budget
- Configure and create the budget
Outcome: Budget thresholds configured with actionable notifications.
Task 1: Open Cost Management and start the budget
Navigate to the Cost Management service where you define spend limits and alerts. This is the central place to monitor and control cloud spending across your subscription and resources.
- In the portal search bar, search for Cost Management + Billing and select Cost Management + Billing.
- In the left menu, select Budgets.
- Select + Add.
- Choose a scope you can manage. If resource-group-level budgets are available in your environment, use rg-gp-cost-guardrails. Otherwise use the subscription scope and note the broader scope in your validation notes.
Note
Validation step: Confirm Cost Management + Billing is open and you have selected your budget scope.
Task 2: Configure and create the budget
Set up your budget parameters including amount, reset period, and alert thresholds. These alerts will notify you before you overspend, giving you time to investigate and adjust.
- For Name, enter gp-pilot-budget.
- For Reset period, select Monthly.
- For Amount, enter a small test value such as 10 (USD or your billing currency).
- Select Next to move to the alerts section.
- Select + Add to add an alert condition.
- For Type, select Actual.
- For the threshold, enter 80 percent.
- In the Alert recipients field, enter your email address.
- Select + Add to add a second alert condition.
- For Type, select Actual.
- For the threshold, enter 100 percent.
- In the Alert recipients field, enter the same email address.
- Select Create.
Note
Validation step: Confirm the gp-pilot-budget appears in the budgets list with two alert thresholds (80% and 100%).