Azure / bicep-types-az

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

[Microsoft.Sql/servers/databases]: The property "minCapacity" expected a value of type "int" #1438

Open MaximBalaganskiy opened 1 year ago

MaximBalaganskiy commented 1 year ago

Resource Type

Microsoft.Sql/servers/databases

Api Version

2022-08-01-preview

Issue Type

Inaccurate property type(s)

Other Notes

The DB supports minCapacity of 0.5 which generates a warning

Bicep Repro

resource db 'Microsoft.Sql/servers/databases@2022-08-01-preview' = {
  parent: server
  name: 'sqldb'
  location: rgLocation
  sku: {
    name: 'GP_S_Gen5'
    tier: 'GeneralPurpose'
    family: 'Gen5'
    capacity: 2
  }
  properties: {
    collation: 'SQL_Latin1_General_CP1_CI_AS'
    maxSizeBytes: 53687091200
    catalogCollation: 'SQL_Latin1_General_CP1_CI_AS'
    zoneRedundant: false
    readScale: 'Disabled'
    autoPauseDelay: 60
    requestedBackupStorageRedundancy: 'Local'
    minCapacity: '0.5'
    isLedgerOn: false
  }
}

Confirm

ghost commented 1 year 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.

Issue Details
### Resource Type Microsoft.Sql/servers/databases ### Api Version 2022-08-01-preview ### Issue Type Inaccurate property type(s) ### Other Notes The DB supports minCapacity of 0.5 which generates a warning ### Bicep Repro ```bicep resource db 'Microsoft.Sql/servers/databases@2022-08-01-preview' = { parent: server name: 'sqldb' location: rgLocation sku: { name: 'GP_S_Gen5' tier: 'GeneralPurpose' family: 'Gen5' capacity: 2 } properties: { collation: 'SQL_Latin1_General_CP1_CI_AS' maxSizeBytes: 53687091200 catalogCollation: 'SQL_Latin1_General_CP1_CI_AS' zoneRedundant: false readScale: 'Disabled' autoPauseDelay: 60 requestedBackupStorageRedundancy: 'Local' minCapacity: '0.5' isLedgerOn: false } } ``` ### Confirm - [X] I have read the troubleshooting guide and looked for duplicates.
Author: MaximBalaganskiy
Assignees: -
Labels: `inaccuracy`, `RP: Microsoft.Sql`, `Service Attention`, `SQL`
Milestone: -