[Microsoft.Web/sites/slots@2023-12-01]: appSettings intellisense reports false warning
- Dominant language
- TypeScript
- Stars
- 108
- Forks
- 44
- Avg merge
- 18h 53m
- Merged PRs (30d)
- 29
Description
### Resource Type
Microsoft.Web/sites/slots
### Api Version
2023-12-01
### Issue Type
Inaccurate property type(s)
### Other Notes
The property "value" expected a value of type "null | string" but the provided value in source declaration "appSettings" is of type "100". If this is an inaccuracy in the documentation, please report it to the Bicep Team.bicep[BCP036](https://aka.ms/bicep-type-issues)
According to this https://learn.microsoft.com/en-us/azure/templates/microsoft.web/sites?pivots=deployment-language-bicep
It should be an array with objects.
### Bicep Repro
```bicep
var appSettings = [
{
name: 'WEBSITE_RUN_FROM_PACKAGE'
value: '1'
}
]
resource webslot 'Microsoft.Web/sites/slots@2023-12-01' = {
properties: {
siteConfig:{
appSettings: appSettings
}
}
}
```
### 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 resource definition for Microsoft.Web/sites/slots@2023-12-01 and inspect the appSettings property referenced by the Bicep reproduction. Compare its value type with the documented array of objects; done means the example no longer produces the false BCP036 warning.
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
- 55/100