I have made a budget in ARM template, where I have two alert under notifications. as default the "ThresholdType" is a "actual" and if i try to change it to forecasted it gives me the error "Value must be one of the following values: "Actual""
The idea is to trigger an alert when the forcasted budget is reached. You can do this in the portal, but is it somehow possible to do this programmatically?
{
"type": "Microsoft.Consumption/budgets",
"apiVersion": "2019-10-01",
"name": "[parameters('budgetName')]",
"properties": {
"timePeriod": {
"startDate": "[parameters('startDate')]",
"endDate": "[parameters('endDate')]"
},
"timeGrain": "[parameters('timeGrain')]",
"amount": "[parameters('amount')]",
"category": "Cost",
"notifications": {
"NotificationForExceededBudget1": {
"enabled": true,
"operator": "GreaterThan",
"threshold": "[parameters('firstThreshold')]",
"contactEmails": "[parameters('ErrorEmailReceivers')]",
"contactRoles": "[parameters('contactRoles')]",
"contactGroups": "[resourceId('Microsoft.Insights/actionGroups',variables('WarnAGName'))]"
},
"NotificationForExceededBudget2": {
"enabled": true,
"operator": "GreaterThan",
"threshold": "[parameters('secondThreshold')]",
"contactEmails": "[parameters('WarningEmailReceivers')]",
"contactRoles": "[parameters('contactRoles')]",
"contactGroups": "[resourceId('Microsoft.Insights/actionGroups',variables('WarnAGName'))]"
}
},
"filter": {
"and": [
{
"dimensions": {
"name": "ResourceGroupName",
"operator": "In",
"values": "[parameters('resourceGroupFilterValues')]"
}
},
{
"dimensions": {
"name": "MeterCategory",
"operator": "In",
"values": "[parameters('meterCategoryFilterValues')]"
}
}
]
}
}
}