Skip to content

Commit 4c30e3b

Browse files
authored
Merge pull request #112453 from KrishnaG-MSFT/patch-61
(AzureCXP) MicrosoftDocs/azure-docs#53107
2 parents e31cf96 + 71597e6 commit 4c30e3b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,28 +151,28 @@ Budget integration with action groups only works for action groups that have the
151151
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:
152152

153153
```azurepowershell-interactive
154-
install-module -name AzureRm
154+
install-module -name Az
155155
```
156156

157157
The following example commands create a budget.
158158

159159
```azurepowershell-interactive
160160
#Sign into Azure Powershell with your account
161161
162-
Connect-AzureRmAccount
162+
Connect-AzAccount
163163
164164
#Select a subscription to to monitor with a budget
165165
166-
select-AzureRmSubscription -Subscription "Your Subscription"
166+
select-AzSubscription -Subscription "Your Subscription"
167167
168168
#Create an action group email receiver and corresponding action group
169169
170-
$email1 = New-AzureRmActionGroupReceiver -EmailAddress [email protected] -Name EmailReceiver1
171-
$ActionGroupId = (Set-AzureRmActionGroup -ResourceGroupName YourResourceGroup -Name TestAG -ShortName TestAG -Receiver $email1).Id
170+
$email1 = New-AzActionGroupReceiver -EmailAddress [email protected] -Name EmailReceiver1
171+
$ActionGroupId = (Set-AzActionGroup -ResourceGroupName YourResourceGroup -Name TestAG -ShortName TestAG -Receiver $email1).Id
172172
173173
#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.
174174
175-
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
175+
New-AzConsumptionBudget -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
176176
```
177177
## Create a budget with an Azure Resource Manager template
178178

0 commit comments

Comments
 (0)