| title | BCP088 |
|---|---|
| description | The property <property-name> expected a value of type <type-name> but the provided value is of type <type-name>. Did you mean <type-name>? |
| ms.topic | reference |
| ms.custom | devx-track-bicep |
| ms.date | 10/30/2025 |
This diagnostic occurs when a value of a property seems to be a typo.
The property <property-name> expected a value of type <type-name> but the provided value is of type <type-name>. Did you mean <type-name>?
Warning / Error
The following example raises the diagnostic because name value ad looks like a typo.
resource kv 'Microsoft.KeyVault/vaults@2023-07-01' existing = {
name: 'vault'
resource ap 'accessPolicies' = {
name: 'ad'
properties: {
accessPolicies: []
}
}
}You can fix the diagnostic by correcting the typo:
resource kv 'Microsoft.KeyVault/vaults@2023-07-01' existing = {
name: 'vault'
resource ap 'accessPolicies' = {
name: 'add'
properties: {
accessPolicies: []
}
}
}For more information about Bicep diagnostics, see Bicep core diagnostics.