Microsoft.Sql/servers/databases: The property kind is read-only
- Dominant language
- TypeScript
- Stars
- 108
- Forks
- 44
- Avg merge
- 18h 53m
- Merged PRs (30d)
- 29
Description
### 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
- [X] I have read the troubleshooting guide and looked for duplicates.
Contributor guide
No contributing guide indexed for this repository
Research direction
Locate the Microsoft.Sql/servers/databases definition for API version 2022-05-01-preview and inspect how the kind property is classified. Use the supplied Bicep repro to verify whether kind can be assigned without the read-only warning; done means the reported migration scenario is accepted or the limitation is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, sql, typescript
- Domain
- cloud, databases, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100