Linter rule BCP088 does not like `kind: 'OfficeATP'` for `Microsoft.SecurityInsights/dataConnectors`
- Dominant language
- TypeScript
- Stars
- 108
- Forks
- 44
- Avg merge
- 18h 53m
- Merged PRs (30d)
- 29
Description
**Bicep version**
CLI & VSCode extension v0.26.170
**Describe the bug**
OfficeATP is a valid kind for `Microsoft.SecurityInsights/dataConnectors@2023-11-01` when `what-if` and deploying, only the linter complains about it.
`The property "kind" expected a value of type "'AmazonWebServicesCloudTrail' | 'AzureActiveDirectory' | 'AzureAdvancedThreatProtection' | 'AzureSecurityCenter' | 'MicrosoftCloudAppSecurity' | 'MicrosoftDefenderAdvancedThreatProtection' | 'Office365' | 'ThreatIntelligence'" but the provided value is of type "'OfficeATP'". Did you mean "'Office365'"?bicep(BCP088)`
**To Reproduce**
Define a `Microsoft.SecurityInsights/dataConnectors@2023-11-01` with `kind: 'OfficeATP'`.
**Additional context**
Add any other context about the problem here.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Microsoft.SecurityInsights/dataConnectors@2023-11-01 type definition and reproduce the BCP088 diagnostic using a kind value of 'OfficeATP'. Done means the valid kind is accepted by the linter while what-if and deployment behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100