Azure / bicep-types-az

Bicep type definitions for ARM resources
MIT License
86 stars 27 forks source link

[Microsoft.Web/sites/slots@2023-12-01]: appSettings intellisense reports false warning #2267

Open LeonsBuntis opened 2 months ago

LeonsBuntis commented 2 months ago

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.bicepBCP036

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

var appSettings = [
        {
          name: 'WEBSITE_RUN_FROM_PACKAGE'
          value: '1'
        }
      ]

resource webslot 'Microsoft.Web/sites/slots@2023-12-01' = {
  properties: {
    siteConfig:{
      appSettings: appSettings
    }
  }
}

Confirm