Skip to content

Commit c61c974

Browse files
authored
Merge pull request #116031 from davidsmatlak/ds-qsrt1721106
Quickstart review - Cost Management + Billing budget
2 parents 37dd5e4 + dc29980 commit c61c974

File tree

2 files changed

+39
-6
lines changed

2 files changed

+39
-6
lines changed

articles/cost-management-billing/costs/quick-create-budget-template.md

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,23 @@ The following Azure permissions, or scopes, are supported per subscription for b
3434

3535
For more information about assigning permission to Cost Management data, see [Assign access to Cost Management data](assign-access-acm-data.md).
3636

37-
## Review the template
37+
## Create a budget
38+
39+
### Review the template
3840

3941
The template used in this quickstart is from [Azure Quickstart templates](https://azure.microsoft.com/resources/templates/create-budget).
4042

41-
:::code language="json" source="~/quickstart-templates/create-budget/azuredeploy.json":::
43+
:::code language="json" source="~/quickstart-templates/create-budget/azuredeploy.json" range="1-146" highlight="110-139":::
4244

4345
One Azure resource is defined in the template:
4446

4547
* [Microsoft.Consumption/budgets](/azure/templates/microsoft.consumption/budgets): Create an Azure budget.
4648

47-
## Deploy the template
49+
### Deploy the template
4850

4951
1. Select the following image to sign in to Azure and open a template. The template creates a budget.
5052

51-
<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fcreate-budget%2Fazuredeploy.json"><img src="./media/quick-create-budget-template/deploy-to-azure.png" alt="deploy to azure"/></a>
53+
[![Deploy to Azure](../../media/template-deployments/deploy-to-azure.svg)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fcreate-budget%2Fazuredeploy.json)
5254

5355
2. Select or enter the following values.
5456

@@ -96,10 +98,41 @@ Get-AzConsumptionBudget
9698

9799
---
98100

101+
## Clean up resources
102+
103+
When you no longer need a budget, delete it by using one the following methods:
104+
105+
### Azure portal
106+
107+
Navigate to **Cost Management + Billing** > select a billing scope > **Budgets** > select a budget > then select **Delete budget**.
108+
109+
### Command line
110+
111+
You can remove the budget using Azure CLI or Azure PowerShell.
112+
113+
# [CLI](#tab/CLI)
114+
115+
```azurecli-interactive
116+
echo "Enter the budget name:" &&
117+
read budgetName &&
118+
az consumption budget delete --budget-name $budgetName &&
119+
echo "Press [ENTER] to continue ..."
120+
```
121+
122+
# [PowerShell](#tab/PowerShell)
123+
124+
```azurepowershell-interactive
125+
$budgetName = Read-Host -Prompt "Enter the budget name"
126+
Remove-AzConsumptionBudget -Name $budgetName
127+
Write-Host "Press [ENTER] to continue..."
128+
```
129+
130+
---
131+
99132
## Next steps
100133

101134
In this quickstart, you created an Azure budget the deployment. To learn more about Azure Cost Management and Billing and Azure Resource Manager, continue on to the articles below.
102135

103136
- Read the [Cost Management and Billing](../cost-management-billing-overview.md) overview
104137
- [Create budgets](tutorial-acm-create-budgets.md) in the Azure portal
105-
- Learn more about [Azure Resource Manager](../../azure-resource-manager/management/overview.md)
138+
- Learn more about [Azure Resource Manager](../../azure-resource-manager/management/overview.md)

articles/cost-management-billing/costs/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
items:
1111
- name: Start analyzing costs
1212
href: quick-acm-cost-analysis.md
13-
- name: Create a budget using a template
13+
- name: Create a budget - ARM template
1414
href: quick-create-budget-template.md
1515
displayName: ARM template, resource manager template
1616
- name: Tutorials

0 commit comments

Comments
 (0)