If I deploy a budgets resource with a notification and forecast object without contactEmails property provided, I get the following warning
[...]Warning BCP035: The specified "object" declaration is missing the following required properties: "contactEmails". If this is an inaccuracy in the documentation, please report it to the Bicep Team. [https://aka.ms/bicep-type-issues]
We use contactGroups instead of contactEmails which works perfectly fine. Obviously, contactEmails is not a required property.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @ccmaxpcrew. Please see https://aka.ms/biceptypesinfo for troubleshooting help.
Resource Type
Microsoft.Consumption/budgets
Api Version
2021-10-01
Issue Type
Missing property(s)
Other Notes
If I deploy a budgets resource with a notification and forecast object without
contactEmails
property provided, I get the following warningWe use
contactGroups
instead ofcontactEmails
which works perfectly fine. Obviously,contactEmails
is not a required property.Bicep Repro
resource budget 'Microsoft.Consumption/budgets@2021-10-01' = { name: 'name' properties: { amount: 100 category: 'Cost' timeGrain: 'Annually' timePeriod: { startDate: '2023-01-01T00:00:00Z' endDate: '2023-12-31T23:59:59Z' } notifications: { forecasted: { enabled: true operator: 'GreaterThan' threshold: 100 locale: 'en-us' // contactEmails:[] Property not required, we use contactGroups instead. contactGroups: [ actionGroup ] thresholdType: 'Forecasted' } } } }
Confirm