Azure / bicep-types-az

Bicep type definitions for ARM resources
MIT License
81 stars 26 forks source link

Microsoft.Sql/servers/databases: The property kind is read-only #1997

Open ranjanisu opened 8 months ago

ranjanisu commented 8 months ago

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

microsoft-github-policy-service[bot] commented 6 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.