Skip to content

Commit 8e7860d

Browse files
authored
Merge pull request #103878 from bandersmsft/master
cost-mgt-billing - updated budget article to add PS section
2 parents 3f6a0af + 12bda4a commit 8e7860d

File tree

2 files changed

+45
-13
lines changed

2 files changed

+45
-13
lines changed

articles/cost-management-billing/costs/analyze-cost-data-azure-cost-management-power-bi-template-app.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
---
2-
title: Analyze Azure costs with the Power BI template app
3-
description: This article explains how to install and use the Azure Cost Management Power BI Template app.
2+
title: Analyze Azure costs with the Power BI App
3+
description: This article explains how to install and use the Azure Cost Management Power BI App.
44
keywords:
55
author: bandersmsft
66
ms.author: banders
7-
ms.date: 01/30/2020
7+
ms.date: 02/10/2020
88
ms.topic: conceptual
99
ms.service: cost-management-billing
1010
ms.reviewer: benshy
1111
---
1212

13-
# Analyze cost with the Azure Cost Management Power BI template app for Enterprise Agreements (EA)
13+
# Analyze cost with the Azure Cost Management Power BI App for Enterprise Agreements (EA)
1414

15-
This article explains how to install and use the Azure Cost Management Power BI Template app. The app helps you analyze and manage your Azure costs in Power BI. You can use the app to monitor costs, usage trends, and identify cost optimization options to reduce your expenditures.
15+
This article explains how to install and use the Azure Cost Management Power BI app. The app helps you analyze and manage your Azure costs in Power BI. You can use the app to monitor costs, usage trends, and identify cost optimization options to reduce your expenditures.
1616

17-
You download the template app into Power BI Desktop. You can use the app as-is, or you can modify it to extend the default filters, views, and visualizations to customize for your needs. Then, use it to join additional data to create customized reports to get holistic views of your overall business cost.
17+
You download the app into Power BI Desktop. You can use the app as-is, or you can modify it to extend the default filters, views, and visualizations to customize for your needs. Then, use it to join additional data to create customized reports to get holistic views of your overall business cost.
1818

19-
The Azure Cost Management template app currently supports only customers with an [Enterprise Agreement](https://azure.microsoft.com/pricing/enterprise-agreement/).
19+
The Azure Cost Management Power BI App currently supports only customers with an [Enterprise Agreement](https://azure.microsoft.com/pricing/enterprise-agreement/).
2020

2121
## Prerequisites
2222

23-
- A [Power BI Pro license](/power-bi/service-self-service-signup-for-power-bi) to install and use the Power BI template app
23+
- A [Power BI Pro license](/power-bi/service-self-service-signup-for-power-bi) to install and use the app
2424
- To connect to data, you must use an [Enterprise Administrator](../manage/understand-ea-roles.md) account
2525

2626
## Installation steps
2727

2828
To install the app:
2929

30-
1. Open [Azure Cost Management Power BI Template app](https://aka.ms/costmgmt/ACMApp).
30+
1. Open [Azure Cost Management Power BI App](https://aka.ms/costmgmt/ACMApp).
3131
2. On the Power BI AppSource page, select **Get it now**.
3232
3. Select **Continue** to agree to the terms of use and privacy policy.
3333
4. In the **Install this Power BI app** box, select **Install**.
@@ -49,9 +49,9 @@ To install the app:
4949

5050
After the data refresh is complete, select the Azure Cost Management App to view the pre-created reports.
5151

52-
## Reports available with the template app
52+
## Reports available with the app
5353

54-
The following reports are available in the Azure Cost Management Power BI template app.
54+
The following reports are available in the app.
5555

5656
**Getting Started** - Provides useful links to documentation and links to provide feedback.
5757

@@ -122,11 +122,11 @@ For details about how to use the report, see the [VM RI Coverage (shared recomme
122122

123123
## Data reference
124124

125-
The following information summarizes the data available through the Power BI template app. There's also links to APIs that give in-depth details for data fields and values.
125+
The following information summarizes the data available through the app. There's also links to APIs that give in-depth details for data fields and values.
126126

127127
| **Table reference** | **Description** |
128128
| --- | --- |
129-
| **AutoFitComboMeter** | Data included in the template app to normalize the RI recommendation and usage to the smallest size in the instance family group. |
129+
| **AutoFitComboMeter** | Data included in the app to normalize the RI recommendation and usage to the smallest size in the instance family group. |
130130
| [**Balance summary**](/rest/api/billing/enterprise/billing-enterprise-api-balance-summary#response) | Summary of the balance for Enterprise Agreements. |
131131
| [**Budgets**](/rest/api/consumption/budgets/get#definitions) | Budget details to view actual costs or usage against existing budget targets. |
132132
| [**Pricesheets**](/rest/api/billing/enterprise/billing-enterprise-api-pricesheet#see-also) | Applicable meter rates for the provided billing profile or EA enrollment. |

articles/cost-management-billing/costs/tutorial-acm-create-budgets.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ In this tutorial, you learn how to:
2828

2929
> [!div class="checklist"]
3030
> * Create a budget in the Azure portal
31+
> * Create and edit budgets with PowerShell
3132
> * Edit a budget
3233
3334
## Prerequisites
@@ -86,6 +87,36 @@ After you create a budget, it is shown in cost analysis. Viewing your budget aga
8687

8788
In the preceding example, you created a budget for a subscription. You can also create a budget for a resource group. If you want to create a budget for a resource group, navigate to **Cost Management + Billing** > **Subscriptions** > select a subscription > **Resource groups** > select a resource group > **Budgets** > and then **Add** a budget.
8889

90+
## Create and edit budgets with PowerShell
91+
92+
EA customers can create and edit budgets programmatically using the Azure PowerShell module. To download the latest version of Azure PowerShell, run the following command:
93+
94+
```azurepowershell-interactive
95+
install-module -name AzureRm
96+
```
97+
98+
The following example commands create a budget.
99+
100+
```azurepowershell-interactive
101+
#Sign into Azure Powershell with your account
102+
103+
Connect-AzureRmAccount
104+
105+
#Select a subscription to to monitor with a budget
106+
107+
select-AzureRmSubscription -Subscription "Your Subscription"
108+
109+
#Create an action group email receiver and corresponding action group
110+
111+
$email1 = New-AzureRmActionGroupReceiver -EmailAddress [email protected] -Name EmailReceiver1
112+
$ActionGroupId = (Set-AzureRmActionGroup -ResourceGroupName YourResourceGroup -Name TestAG -ShortName TestAG -Receiver $email1).Id
113+
114+
#Create a monthly budget that sends an email and triggers an Action Group to send a second email. Make sure the StartDate for your monthly budget is set to the first day of the current month. Note that Action Groups can also be used to trigger automation such as Azure Functions or Webhooks.
115+
116+
New-AzureRmConsumptionBudget -Amount 100 -Name TestPSBudget -Category Cost -StartDate 2020-02-01 -TimeGrain Monthly -EndDate 2022-12-31 -ContactEmail [email protected] -NotificationKey Key1 -NotificationThreshold 0.8 -NotificationEnabled -ContactGroup $ActionGroupId
117+
```
118+
119+
89120
## Costs in budget evaluations
90121

91122
Budget cost evaluations now include reserved instance and purchase data. If the charges apply to you, then you might receive alerts as charges are incorporated into your evaluations. We recommend that you sign in to the [Azure portal](https://portal.azure.com) to verify that budget thresholds are properly configured to account for the new costs. Your Azure billed charges aren't changed. Budgets now evaluate against a more complete set of your costs. If the charges don't apply to you, then your budget behavior remains unchanged.
@@ -132,6 +163,7 @@ In this tutorial, you learned how to:
132163

133164
> [!div class="checklist"]
134165
> * Create a budget in the Azure portal
166+
> * Create and edit budgets with PowerShell
135167
> * Edit a budget
136168
137169
Advance to the next tutorial to create a recurring export for your cost management data.

0 commit comments

Comments
 (0)