Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
patrickks-rba opened this issue Apr 29, 2024 · 1 comment
Open
1 task done

Comments

@patrickks-rba
Copy link

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

  • I have read the troubleshooting guide and looked for duplicates.
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants