Skip to content

Commit 8efdb48

Browse files
committed
change contact group syntax
1 parent df55fbd commit 8efdb48

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: banders
66
ms.service: cost-management-billing
77
ms.subservice: cost-management
88
ms.topic: quickstart
9-
ms.date: 07/06/2022
9+
ms.date: 08/26/2022
1010
ms.custom: subject-armqs, devx-track-azurepowershell, mode-arm
1111
---
1212

@@ -166,7 +166,7 @@ One Azure resource is defined in the Bicep file:
166166
167167
```azurecli
168168
myContactEmails ='("[email protected]", "[email protected]")'
169-
myContactGroups ='("action-group-resource-id-01", "action-group-resource-id-02")'
169+
myContactGroups ='("/subscriptions/{sub-id}/resourceGroups/{rg-name}/providers/microsoft.insights/actionGroups/groupone", "/subscriptions/{sub-id}/resourceGroups/{rg-name}/providers/microsoft.insights/actionGroups/grouptwo")'
170170
myRgFilterValues ='("resource-group-01", "resource-group-02")'
171171
myMeterCategoryFilterValues ='("meter-category-01", "meter-category-02")'
172172
@@ -177,7 +177,7 @@ One Azure resource is defined in the Bicep file:
177177
178178
```azurepowershell
179179
$myContactEmails = @("[email protected]", "[email protected]")
180-
$myContactGroups = @("action-group-resource-id-01", "action-group-resource-id-02")
180+
$myContactGroups = @("/subscriptions/{sub-id}/resourceGroups/{rg-name}/providers/microsoft.insights/actionGroups/groupone", "/subscriptions/{sub-id}/resourceGroups/{rg-name}/providers/microsoft.insights/actionGroups/grouptwo")
181181
$myRgFilterValues = @("resource-group-01", "resource-group-02")
182182
$myMeterCategoryFilterValues = @("meter-category-01", "meter-category-02")
183183
@@ -192,7 +192,7 @@ One Azure resource is defined in the Bicep file:
192192
- **startDate**: Replace **\<start-date\>** with the start date. It must be the first of the month in YYYY-MM-DD format. A future start date shouldn't be more than three months in the future. A past start date should be selected within the timegrain period.
193193
- **endDate**: Replace **\<end-date\>** with the end date in YYYY-MM-DD format. If not provided, it defaults to ten years from the start date.
194194
- **contactEmails**: First create a variable that holds your emails and then pass that variable. Replace the sample emails with the email addresses to send the budget notification to when the threshold is exceeded.
195-
- **contactGroups**: First create a variable that holds your contact groups and then pass that variable. Replace the sample contact groups with the list of action groups to send the budget notification to when the threshold is exceeded.
195+
- **contactGroups**: First create a variable that holds your contact groups and then pass that variable. Replace the sample contact groups with the list of action groups to send the budget notification to when the threshold is exceeded. You must pass the resource ID of the action group, which you can get with [az monitor action-group show](/cli/azure/monitor/action-group#az-monitor-action-group-show) or [Get-AzActionGroup](/powershell/module/az.monitor/get-azactiongroup).
196196
- **resourceGroupFilterValues**: First create a variable that holds your resource group filter values and then pass that variable. Replace the sample filter values with the set of values for your resource group filter.
197197
- **meterCategoryFilterValues**: First create a variable that holds your meter category filter values and then pass that variable. Replace the sample filter values within parentheses with the set of values for your meter category filter.
198198

0 commit comments

Comments
 (0)