You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cost-management-billing/costs/cost-mgt-alerts-monitor-usage-spending.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ Budget alerts notify you when spending, based on usage or cost, reaches or excee
31
31
32
32
In the Azure portal, budgets are defined by cost. Using the Azure Consumption API, budgets are defined by cost or by consumption usage. Budget alerts support both cost-based and usage-based budgets. Budget alerts are generated automatically whenever the budget alert conditions are met. You can view all cost alerts in the Azure portal. Whenever an alert is generated, it's shown in cost alerts. An alert email is also sent to the people in the alert recipients list of the budget.
33
33
34
-
If you have an Enterprise Agreement, you can [Create and edit budgets with PowerShell](tutorial-acm-create-budgets.md#create-and-edit-budgets-with-powershell). Customers with a Microsoft Customer Agreement should use the [Budgets REST API](/rest/api/consumption/budgets/create-or-update) to create budgets programmatically.
34
+
If you have an Enterprise Agreement, you can [Create and edit budgets](tutorial-acm-create-budgets.md#create-and-edit-budgets). Customers with a Microsoft Customer Agreement should use the [Budgets REST API](/rest/api/consumption/budgets/create-or-update) to create budgets programmatically.
35
35
36
36
You can use the Budget API to send email alerts in a different language. For more information, see [Supported locales for budget alert emails](manage-automation.md#supported-locales-for-budget-alert-emails).
Copy file name to clipboardExpand all lines: articles/cost-management-billing/costs/tutorial-acm-create-budgets.md
+176-4Lines changed: 176 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ In this tutorial, you learn how to:
31
31
32
32
> [!div class="checklist"]
33
33
> * Create a budget in the Azure portal
34
-
> * Create and edit budgets with PowerShell
34
+
> * Create and edit budgets
35
35
> * Create a budget with an Azure Resource Manager template
36
36
37
37
## Prerequisites
@@ -178,7 +178,9 @@ To receive mobile push notifications when your budget threshold is met, you can
178
178
179
179
:::image type="content" source="./media/tutorial-acm-create-budgets/azure-app-budgets.png" alt-text="Screenshot showing budgets in the Azure app." lightbox="./media/tutorial-acm-create-budgets/azure-app-budgets.png" :::
180
180
181
-
## Create and edit budgets with PowerShell
181
+
## Create and edit budgets
182
+
183
+
### [PowerShell](#tab/psbudget)
182
184
183
185
If you're an EA customer, you can create and edit budgets programmatically using the Azure PowerShell module. However, we recommend that you use REST APIs to create and edit budgets because CLI commands might not support the latest version of the APIs.
184
186
@@ -191,7 +193,7 @@ To download the latest version of Azure PowerShell, run the following command:
191
193
install-module -name Az
192
194
```
193
195
194
-
The following example commands create a budget.
196
+
The following example commands create a budget using PowerShell. Make sure to replace all example prompts with your own info.
Make sure to properly [install and configure Terraform](/azure/developer/terraform/quickstart-configure) before continuing. All examples are based on [HashiCorp's 'azurerm_subscription_cost_management_export' docs](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subscription_cost_management_export).
242
+
243
+
The following example creates a budget using Terraform. Make sure to replace all example prompts with your own info.
244
+
245
+
1. Configure provider: Ensure you have the Azure provider configured.
246
+
```
247
+
provider "azurerm" {
248
+
features {}
249
+
}
250
+
```
251
+
252
+
1. Select an Azure subscription: Specify the subscription ID in the provider configuration or via environment variables.
You can create a budget using an Azure Resource Manager template. To use the template, see [Create a budget with an Azure Resource Manager template](quick-create-budget-template.md).
219
389
390
+
---
391
+
220
392
## Clean up resources
221
393
222
394
If you created a budget and you no longer need it, view its details and delete it.
0 commit comments