Azure / bicep-types-az

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

Microsoft.Sql/servers/databases minCapacity is wrong type in validation #2136

Open patrickks-rba opened 5 months ago

patrickks-rba commented 5 months ago

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

microsoft-github-policy-service[bot] commented 4 months ago

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.