The property "containsAny" is not allowed on objects of type "ActivityLogAlertLeafCondition".
- Dominant language
- Bicep
- Stars
- 3.6k
- Forks
- 830
- Avg merge
- 1d 21m
- Merged PRs (30d)
- 79
Description
The property "containsAny" is not allowed on objects of type "ActivityLogAlertLeafCondition".
No other properties are allowed. If this is an inaccuracy in the documentation, please report it to the Bicep Team.
--
Bicep CLI version 0.13.1 (e3ac80d678)
-- sample bicep:
```bicep
param actionGroup object
param general object
resource activityLogAlerts 'microsoft.insights/activityLogAlerts@2017-04-01' = {
name: '${general.customerName} PitWall ${general.env} - General Service Health alert'
location: 'global'
properties: {
scopes: [
subscription().id
]
condition: {
allOf: [
{
field: 'category'
equals: 'ServiceHealth'
}
{
field: 'properties.impactedServices[*].ImpactedRegions[*].RegionName'
equals: null
containsAny: general.region
}
]
}
actions: {
actionGroups: [
{
actionGroupId: resourceId('Microsoft.Insights/actionGroups', actionGroup.motion10.name)
webhookProperties: {}
}
{
actionGroupId: resourceId('Microsoft.Insights/actionGroups', actionGroup.customer.name)
webhookProperties: {}
}
]
}
enabled: true
description: '${general.customerName} PitWall ${general.env} - General Service Health alert'
}
}
```
Contributor guide
Research direction
Reproduce the sample Bicep with Bicep CLI 0.13.1 and trace validation for the ActivityLogAlertLeafCondition containing containsAny. Confirm whether the Azure resource schema or the documentation is inaccurate, then verify that the reported sample is accepted or documented correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100