The validation errors says that minCapacity should be an INT type but it is a json('decimal-as-string') in the documentation and the value placed here in my bicep is '0.5' which is appropriate. It shows a warning but it should not.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureSQLGitHub. Please see https://aka.ms/biceptypesinfo for troubleshooting help.
Resource Type
Microsoft.Sql/servers/databases
Api Version
2023-05-01-preview
Issue Type
Inaccurate property type(s)
Other Notes
The validation errors says that minCapacity should be an INT type but it is a json('decimal-as-string') in the documentation and the value placed here in my bicep is '0.5' which is appropriate. It shows a warning but it should not.
Bicep Repro
resource sqlServerDatabase 'Microsoft.Sql/servers/databases@2023-05-01-preview' = { parent: sqlServerInstance name: sqlServerDBName location: location //Let Default Tags Apply sku: sqlServerDBSku properties: { collation: 'SQL_Latin1_General_CP1_CI_AS' maxSizeBytes: 34359738368 catalogCollation: 'SQL_Latin1_General_CP1_CI_AS' zoneRedundant: false readScale: 'Disabled' autoPauseDelay: 60 requestedBackupStorageRedundancy: 'Local' minCapacity: '0.5' isLedgerOn: false availabilityZone: 'NoPreference' } }
Confirm