Set a budget and a spending alert
In this task you'll set a monthly budget with an email alert.
A budget watches what you spend and emails you when you reach levels you choose, for example half of 10 pounds in a month. Do this before you create anything else.
A budget only sends alerts. It doesn't stop or delete anything, so think of it as a warning light, not a brake.
Example. SS Kaiser sets a 200 pound monthly budget on its test subscription, with alerts at 50% and 90% spent and at a forecast of 100%, all sent to cloud-team@sskaiser.example.
Before you start
You need: Owner, Contributor or Cost Management Contributor on the subscription. Time: 5 minutes.
Where to look
- Subscriptions
- Azure subscription 1
- Cost Management
- Budgets
- + Add
Steps
- Open Subscriptions and select Azure subscription 1. In its service menu, expand Cost Management and select Budgets.
- Check that Scope at the top shows your subscription.If you came through search, it may show your billing account (your own name). Budgets work there too, but this guide uses the subscription.
- Select + Add.
- Name it budget-practice, leave Reset period as monthly and enter an amount, for example 10.The amount is in your billing currency. Pick a figure you'd be unhappy to go past.
- Select Next to reach Set alerts. Under Alert conditions, fill in three rows: Actual cost 50, Actual cost 90 and Forecasted cost 100 (the % of budget).Each row shows the amount it stands for, such as 5 for 50% of 10. The forecast row warns you early, before the money is actually spent.
- Under Alert recipients (email), enter your own email address.The page suggests adding azure-noreply@microsoft.com to your contacts, so the alerts don't land in spam.
- Select Create. After a short Validating step, the budget appears in the list.
Tip. You can also search for budgets, but then check the scope: it may open on your billing account instead of the subscription.
Commands
# Create a monthly cost budget (start date must be the first of a month)
az consumption budget create --budget-name budget-practice \
--amount 10 --category cost --time-grain monthly \
--start-date 2026-11-01 --end-date 2027-10-31
# Alert emails are easier to add in the portal
Watch out for
- Cost
- Budgets are free. Cost data can take several hours to arrive, so an alert can come some time after the spending, not at that moment.
- Security
- Anyone who can read the subscription's costs can see the budget. Alerts go to whatever addresses you enter, so use ones you control.
- Common mistakes
- Treating a budget as a spending cap. It isn't one. A free account's credit has its own spending limit, but once you move to pay-as-you-go that limit goes, and only your own care stops the bill. If the page says budgets aren't supported for your offer, watch spending in Cost analysis instead.
Clean up
- Budgets
- budget-practice
- Delete budget
Keep this one: it's your safety net while you work through the guide. Delete it only when you stop using the account.
Words to know
- Budget
- An amount you plan to spend in a period, with alerts as you get close.
- Forecast
- Azure's estimate of what you'll have spent by the end of the period, based on spending so far.
Tick off each step and track your progress in the guide.
Open this task in Azure Portal, Hands On