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/tutorial-acm-create-budgets.md
+175-3Lines changed: 175 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -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](/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