Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.