Microsoft.Security/DefenderForStorageSettings: Missing malwareScanning property
- Dominant language
- TypeScript
- Stars
- 108
- Forks
- 44
- Avg merge
- 18h 53m
- Merged PRs (30d)
- 29
Description
### Resource Type
Microsoft.Security/DefenderForStorageSettings
### Api Version
2022-12-01-preview
### Issue Type
Missing property(s)
### Other Notes
Deployment works as expected but type checking claims the `scanResultsEventGridTopicResourceId` property is not allowed.
### Bicep Repro
```
resource defenderForStorageSettings 'Microsoft.Security/DefenderForStorageSettings@2022-12-01-preview' = {
name: 'current'
scope: ${storage_account}
properties: {
isEnabled: true
malwareScanning: {
onUpload: {
isEnabled: true
capGBPerMonth: 5000
}
scanResultsEventGridTopicResourceId: ${event_grid_topic_id}
}
sensitiveDataDiscovery: {
isEnabled: true
}
overrideSubscriptionLevelSettings: true
}
}
```
### Confirm
- [X] I have read the troubleshooting guide and looked for duplicates.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the type definition for Microsoft.Security/DefenderForStorageSettings at API version 2022-12-01-preview and compare it with the Bicep repro. Update the definition so the shown malwareScanning properties, including scanResultsEventGridTopicResourceId, are accepted by type checking, then verify the repro deploys and type-checks successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, typescript
- Domain
- cloud, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100