Learn how to monitor your organization’s cloud costs in Terra by setting alerts and budgets in the Azure Portal. See also Microsoft Azure’s budget documentation.
To follow the directions below, you must have the following 1. Access in the Azure Portal to the Azure subscription used to create the Terra Environment
2. The resource group name for the Terra Environment you're working with (if you have multiple Terra Environments or use the same subscription for other Azure resources).
Step-by-step instructions to set a budget in Azure
2. Select the subscription used to create your Terra Billing Project.
3. On the left-hand panel, under Cost Management, select Budgets.
4. Click +Add at the top of the page (to the right of the left-sidebar).
What to expect
This opens a screen where you can set a budget for your Azure subscription as a whole or for specific resources in the subscription.
Use the Budget scoping section to set a budget for resources and receive alerts to help you monitor costs.
Budget/alerts for the entire cost of my organization’s Terra
1. In the Budget Scoping section, add a filter: Resource Group Name: and select both the mrg- and mrg-AKS resource groups deployed for your Terra Environment.
2. Under Budget Amount, give your budget amount threshold for the time period you are monitoring (monthly, quarterly, annually).
3. Follow the remaining steps in the budget creation to set when and where to receive alerts.
Budget/alerts for direct workflow costs
Direct workflow costs include batch VM+Disk and load balancers.
1. In the Budget Scoping section, add a filter: Resource Group Name and select only the mrg- resource group deployed for your Terra Environment.
2. Add another filter: Resource Type: and select microsoft.batch/batchaccounts and microsoft.network/loadbalancers.
3. Under Budget Amount, give your budget amount threshold for the time period you are monitoring (monthly, quarterly, annually).
4. Follow the remaining steps in the budget creation to set when and where to receive alerts.