Migrating from JSON to Biceps template , I need to specify kind: 'v12.0,user' , but getting warning The property "kind" is read-only. Expressions cannot be assigned to read-only properties.
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
2022-05-01-preview
Issue Type
Type is unavailable
Other Notes
Migrating from JSON to Biceps template , I need to specify kind: 'v12.0,user' , but getting warning The property "kind" is read-only. Expressions cannot be assigned to read-only properties.
Bicep Repro
resource dbFullName 'Microsoft.Sql/servers/databases@2022-05-01-preview' = { sku: { name: 'Standard' tier: 'Standard' capacity: 100 } kind: 'v12.0,user' name: DBNAME location: location
tags: { DisplayName: databaseServerName allowAutoTeardown: string(allowAutoTeardown) } properties: { collation: 'SQL_Latin1_General_CP1_CI_AS' maxSizeBytes: 268435456000 catalogCollation: 'SQL_Latin1_General_CP1_CI_AS' zoneRedundant: false } resource policies 'backupLongTermRetentionPolicies' = { name: 'default' properties: { weeklyRetention: 'P1M' monthlyRetention: 'P1Y' } } }
Confirm