Azure / Azure/bicep-types-az

Linter rule BCP088 does not like `kind: 'OfficeATP'` for `Microsoft.SecurityInsights/dataConnectors`

Open
#2,152 1 comment 0 reactions 0 assignees View on GitHub
Security Service Attention
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.